From 7e3b43fb5cb5047005b808179cb5dd106cb03563 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Thu, 16 Apr 2026 12:42:49 +0200 Subject: [PATCH] chore: update mongodb version, rename network, and parameterize app port in docker-compose --- docker-compose.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 91c51a0..a6ea577 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,13 +2,13 @@ version: '3.8' services: mongodb: - image: mongo:latest + image: mongo:7 container_name: podcastic-mongodb restart: unless-stopped volumes: - mongodb_data:/data/db networks: - - podcastic + - podcastic_net redis: image: redis:7-alpine @@ -17,16 +17,16 @@ services: volumes: - redis_data:/data networks: - - podcastic + - podcastic_net - podcastic: + app: build: context: . dockerfile: Dockerfile - container_name: podcastic + container_name: podcastic-app restart: unless-stopped ports: - - "3579:3579" + - "${PORT:-3579}:3579" environment: NODE_ENV: production PORT: 3579 @@ -41,12 +41,12 @@ services: - mongodb - redis networks: - - podcastic + - podcastic_net volumes: mongodb_data: redis_data: networks: - podcastic: + podcastic_net: driver: bridge