mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:14:03 +00:00
Use env variables in docker-compose
This commit is contained in:
parent
f4b0f4cee6
commit
aafb629bae
1 changed files with 3 additions and 3 deletions
|
|
@ -53,15 +53,15 @@ services:
|
||||||
retries: 10
|
retries: 10
|
||||||
postgres:
|
postgres:
|
||||||
image: 'postgres:15'
|
image: 'postgres:15'
|
||||||
user: 'postgres'
|
user: '${POSTGRES_USER:-postgres}'
|
||||||
ports:
|
ports:
|
||||||
- '${POSTGRES_PORT:-5433}'
|
- '${POSTGRES_PORT:-5433}'
|
||||||
environment:
|
environment:
|
||||||
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
||||||
PGPORT: '${POSTGRES_PORT:-5433}'
|
PGPORT: '${POSTGRES_PORT:-5433}'
|
||||||
POSTGRES_DB: main
|
POSTGRES_DB: main
|
||||||
POSTGRES_USER: 'postgres'
|
POSTGRES_USER: '${POSTGRES_USER:-postgres}'
|
||||||
POSTGRES_PASSWORD: 'postgres'
|
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
||||||
expose:
|
expose:
|
||||||
- '${POSTGRES_PORT:-5433}'
|
- '${POSTGRES_PORT:-5433}'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue