From 25ef5660fa6e21e220185a39a161dac59aaf67b5 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Sat, 18 Oct 2025 17:30:25 +0530 Subject: [PATCH 1/2] 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 -- 2.45.2 From 6794e567481163bf04c9b87b281e2b9661031461 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Sat, 18 Oct 2025 17:33:06 +0530 Subject: [PATCH 2/2] postgres docker compose file deleted --- postgres-docker-compose.yaml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 postgres-docker-compose.yaml diff --git a/postgres-docker-compose.yaml b/postgres-docker-compose.yaml deleted file mode 100644 index b72cc0d..0000000 --- a/postgres-docker-compose.yaml +++ /dev/null @@ -1,16 +0,0 @@ -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 -- 2.45.2