diff --git a/prisma/.env.sample b/prisma/.env.sample new file mode 100644 index 0000000..955ead9 --- /dev/null +++ b/prisma/.env.sample @@ -0,0 +1,5 @@ +PRISMA_MANAGEMENT_API_SECRET= +PRISMA_SECRET= +DB_HOST= +DB_USER= +DB_PASSWORD= diff --git a/prisma/docker-compose.yml b/prisma/docker-compose.yml index 82eb6f4..b0d096d 100644 --- a/prisma/docker-compose.yml +++ b/prisma/docker-compose.yml @@ -8,22 +8,12 @@ services: environment: PRISMA_CONFIG: | port: 4466 - managementApiSecret: test_api_key + managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET} databases: default: connector: postgres - host: postgres - user: prisma - password: prisma + host: ${DB_HOST} + user: ${DB_USER} + password: ${DB_PASSWORD} port: 5432 migrations: true - postgres: - image: postgres - restart: always - environment: - POSTGRES_USER: prisma - POSTGRES_PASSWORD: prisma - volumes: - - postgres:/var/lib/postgresql/data -volumes: - postgres: ~ \ No newline at end of file