Separate frontend and backend into individual containers: Frontend on 3601, Backend on 3660

This commit is contained in:
Hamza-Ayed
2026-03-30 17:50:14 +03:00
parent ba8906ddef
commit c6cf956727
3 changed files with 34 additions and 13 deletions

View File

@@ -2,7 +2,9 @@ version: '3.8'
services:
api:
build: .
build:
context: .
dockerfile: Dockerfile
container_name: ads-analytics-api
ports:
- "${PORT:-3660}:3660"
@@ -11,8 +13,19 @@ services:
environment:
- NODE_ENV=production
- DB_HOST=db
- REDIS_HOST=redis
depends_on:
- db
- redis
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: ads-analytics-ui
ports:
- "3601:5001"
restart: always
db: