Env name added in container name #81
@ -19,7 +19,7 @@ services:
|
||||
restart: unless-stopped
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: cftunnel-db
|
||||
container_name: cftunnel-db-${ENV}
|
||||
environment:
|
||||
POSTGRES_DB: cftunnel
|
||||
POSTGRES_USER: ${POSTGRES_USERNAME}
|
||||
|
||||
16
postgres-docker-compose.yaml
Normal file
16
postgres-docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
container_name: cftunnel-db
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_DB: cftunnel
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Loading…
Reference in New Issue
Block a user