-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
82 lines (76 loc) · 1.59 KB
/
docker-compose.yml
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
services:
mongodb:
image: mongo:6
container_name: mongodb
ports:
- 27017:27017
volumes:
- ./mongo-seed:/docker-entrypoint-initdb.d
restart: unless-stopped
environment:
- SEED_FILE=${PRODUCT_TYPE}Products.json
api:
build: ./api
container_name: api
ports:
- "8000:8000"
links:
- mongodb
environment:
- MONGO_URL=mongodb
- INVENTORY_URL=http://inventory:8002
- RECOMMENDATIONS_URL=http://recommendations:8001
- IMAGE_DIRECTORY=${PRODUCT_TYPE}
dns:
- 10.1.1.6
restart: unless-stopped
spa:
build:
context: ./spa
args:
VITE_APP_GLOBAL_COLOR: "#000"
VITE_APP_GLOBAL_BACKGROUND_COLOR: "#FFF"
container_name: spa
ports:
- "8081:8080"
links:
- api
restart: unless-stopped
spa-dark:
build:
context: ./spa
args:
VITE_APP_GLOBAL_COLOR: "#FFF"
VITE_APP_GLOBAL_BACKGROUND_COLOR: "#000"
container_name: spa-dark
ports:
- "8082:8080"
links:
- api
restart: unless-stopped
recommendations:
build:
context: .
dockerfile: ./recommendations/Dockerfile
container_name: recs
ports:
- "8001:8001"
links:
- api
environment:
- SEED_FILE=${PRODUCT_TYPE}Products.json
restart: unless-stopped
inventory:
build: ./inventory
container_name: inv
ports:
- "8002:8002"
links:
- api
restart: unless-stopped
checkout:
build: ./checkout
container_name: checkout
ports:
- "8003:8003"
restart: unless-stopped