fix errors for discogs and use env settings in mcrates compose
This commit is contained in:
1 parent
2ffb5f9bc3
commit
ac0a31511d
4 files changed
+17
-9
No files matched your search
@@ -4,9 +4,9 @@ services:
|
||||
pg:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_USER: 'mcrates'
|
||||
POSTGRES_DB: 'mcrates'
|
||||
POSTGRES_PASSWORD: 'digdeep'
|
||||
POSTGRES_USER: '${POSTGRES_USER}'
|
||||
POSTGRES_DB: '${POSTGRES_DB}'
|
||||
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
|
||||
|
||||
# allow prisma client to push changes from outside docker etc
|
||||
# ufw blocks this from being publicly accessible
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
working_dir: /opt/mcrates/api
|
||||
entrypoint: npm start
|
||||
environment:
|
||||
DATABASE_URL: 'postgresql://mcrates:digdeep@pg:5432/mcrates?schema=public'
|
||||
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@pg:5432/${POSTGRES_DB}?schema=public'
|
||||
volumes:
|
||||
- "./api:/opt/mcrates/api"
|
||||
|
||||
|
||||
Reference in new issue
Block a user