Env name added in container name #81

Merged
kruti merged 2 commits from test into main 2025-10-18 12:12:11 +00:00
2 changed files with 17 additions and 1 deletions
Showing only changes of commit 25ef5660fa - Show all commits

View File

@ -19,7 +19,7 @@ services:
restart: unless-stopped restart: unless-stopped
postgres: postgres:
image: postgres:15-alpine image: postgres:15-alpine
container_name: cftunnel-db container_name: cftunnel-db-${ENV}
environment: environment:
POSTGRES_DB: cftunnel POSTGRES_DB: cftunnel
POSTGRES_USER: ${POSTGRES_USERNAME} 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: