From 25ef5660fa6e21e220185a39a161dac59aaf67b5 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Sat, 18 Oct 2025 17:30:25 +0530 Subject: [PATCH] Env name added in container name --- docker-compose.yaml | 2 +- postgres-docker-compose.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 postgres-docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml index f8cb6ed..9eb1198 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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} diff --git a/postgres-docker-compose.yaml b/postgres-docker-compose.yaml new file mode 100644 index 0000000..b72cc0d --- /dev/null +++ b/postgres-docker-compose.yaml @@ -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: \ No newline at end of file