Jovaanc
05/26/2020, 12:10 PMRyan
05/26/2020, 12:30 PMPRISMA_MANAGEMENT_API_SECRET=secret prisma1 deploy
The env variable is required and should be the same as managementApiSecret
.Philipp Rajah Moura Srivastava
05/26/2020, 9:05 PMRyan
05/27/2020, 6:41 AM.env
file.
You can also specify prisma deploy -e .something.env
to specify a different env file.Philipp Rajah Moura Srivastava
06/02/2020, 8:08 PMRyan
06/03/2020, 6:30 AMdocker-compose.yml
that handles the secret:
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.34.10
restart: always
ports:
- '4466:4466'
env_file:
- .env
environment:
PRISMA_CONFIG: |
port: 4466
managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET}
databases:
default:
connector: postgres
host: host.docker.internal
database: prisma1
schema: public
user: username
password: password
rawAccess: true
port: '5432'
migrations: true
I have accessed the Management API secret in the variable above.
Also the env file needs to be specified to compose.Philipp Rajah Moura Srivastava
06/05/2020, 4:06 AM