This repository was archived by the owner on Jun 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (90 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
100 lines (90 loc) · 1.78 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
services:
gateway:
env_file:
- ./.env
build: ./gateway
container_name: gateway
ports:
- "8000:8000"
networks:
- backend
volumes:
- ./host-logs/gateway:/app/logs
admin:
env_file:
- ./.env
build: ./admin
container_name: admin
ports:
- "8003:8003"
networks:
- backend
alert:
env_file:
- ./.env
build: ./alert
container_name: alert
ports:
- "8005:8005"
networks:
- backend
order:
env_file:
- ./.env
build: ./order
container_name: order
ports:
- "8004:8004"
networks:
- backend
product:
env_file:
- ./.env
build: ./product
environment:
MONGODB_URI: "mongodb://${DB_USER}:${DB_PASSWORD}@${MONGO_URL}:${MONGO_PORT}/${MONGO_DB}?authSource=admin"
container_name: product
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8001:8001"
networks:
- backend
volumes:
- ./host-logs/product:/app/logs
cart:
build: ./cart
container_name: cart
env_file:
- ./.env # ← load .env here
environment:
MONGODB_URI: "mongodb://${DB_USER}:${DB_PASSWORD}@${MONGO_URL}:${MONGO_PORT}/${MONGO_DB}?authSource=admin"
ports:
- "8002:8002"
networks:
- backend
promotion:
env_file:
- ./.env
build: ./promotion
container_name: promotion
ports:
- "8006:8006"
networks:
- backend
recommend:
env_file:
- ./.env
build: ./recommend
container_name: recommend
restart: always
ports:
- "8007:8007"
networks:
- backend
depends_on:
- product
networks:
backend:
driver: bridge
# docker-compose.yml (루트에 위치)