-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (100 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
108 lines (100 loc) · 2.27 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Tệp docker-compose này khởi chạy cả frontend và backend.
# Nó giả định rằng backend đang kết nối đến Supabase cloud.
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend_app
ports:
- "8080:80"
restart: always
networks:
- my-network
gateway:
build:
context: ./backend
dockerfile: Dockerfile
container_name: gateway_service
restart: always
command: ["uvicorn", "gateway.main:app", "--host", "0.0.0.0", "--port", "8000"]
ports:
- "8000:8000"
env_file:
- .env
networks:
- my-network
depends_on:
- auth
- users
- academic
- learning
- payment
auth:
build:
context: ./backend
dockerfile: Dockerfile
container_name: auth_service
restart: always
command: ["uvicorn", "auth.main:app", "--host", "0.0.0.0", "--port", "8001"]
ports:
- "8001:8001"
env_file:
- .env
networks:
- my-network
users:
build:
context: ./backend
dockerfile: Dockerfile
container_name: users_service
restart: always
command: ["uvicorn", "users.main:app", "--host", "0.0.0.0", "--port", "8002"]
ports:
- "8002:8002"
env_file:
- .env
networks:
- my-network
academic:
build:
context: ./backend
dockerfile: Dockerfile
container_name: academic_service
restart: always
command: ["uvicorn", "academic.main:app", "--host", "0.0.0.0", "--port", "8003"]
ports:
- "8003:8003"
env_file:
- .env
networks:
- my-network
learning:
build:
context: ./backend
dockerfile: Dockerfile
container_name: learning_service
restart: always
command: ["uvicorn", "learning.main:app", "--host", "0.0.0.0", "--port", "8004"]
ports:
- "8004:8004"
env_file:
- .env
networks:
- my-network
payment:
build:
context: ./backend
dockerfile: Dockerfile
container_name: payment_service
restart: always
command: ["uvicorn", "payment.main:app", "--host", "0.0.0.0", "--port", "8005"]
ports:
- "8005:8005"
env_file:
- .env
networks:
- my-network
networks:
my-network:
driver: bridge