Env name added in container name

This commit is contained in:
Kruti Shah 2025-10-18 17:30:25 +05:30
parent 057d0120b7
commit 25ef5660fa
2 changed files with 17 additions and 1 deletions

View File

@ -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}

View 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: