Separate frontend and backend into individual containers: Frontend on 3601, Backend on 3660
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user