File size: 393 Bytes
0e45313
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Docker Compose for Production
version: '3.8'

services:
  # 1. API Production
  api:
    build:
      context: ./api
      dockerfile: Dockerfile
    ports:
      - "8000:8000"
    restart: always

  # 2. Web UI Production (Nginx)
  ui:
    build:
      context: ./ui
      dockerfile: Dockerfile
      target: prod
    ports:
      - "80:80"
    depends_on:
      - api
    restart: always