fix(docker-compose): set container name for postgres instance
This commit is contained in:
parent
2f260e8aed
commit
57efa80acf
@ -1,17 +1,16 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
flucky-db:
|
flucky-db:
|
||||||
|
container_name: postgres
|
||||||
environment:
|
environment:
|
||||||
- PGTZ=${TZ}
|
- PGTZ=${TZ}
|
||||||
- POSTGRES_PASSWORD=${PG_PASSWORD}
|
- POSTGRES_PASSWORD=${PG_PASSWORD}
|
||||||
- POSTGRES_USER=${PG_USER}
|
- POSTGRES_USER=${PG_USER}
|
||||||
- POSTGRES_DB=${PG_NAME}
|
- POSTGRES_DB=${PG_NAME}
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
image: postgres:11.5-alpine
|
image: postgres:11.5-alpine
|
||||||
ports:
|
ports:
|
||||||
- ${PG_EXTERN_PORT}:${PG_INTERN_PORT}/tcp
|
- ${PG_EXTERN_PORT}:${PG_INTERN_PORT}/tcp
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
Loading…
Reference in New Issue
Block a user