forked from linux-odyssey/linux-odyssey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
82 lines (76 loc) · 1.47 KB
/
docker-compose.prod.yml
File metadata and controls
82 lines (76 loc) · 1.47 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
services:
app:
image: ntutnpc/frontend
depends_on:
- backend
restart: always
build:
context: .
dockerfile: app/Dockerfile
target: prod
networks:
- internal
ports:
- 8080:80
backend:
image: ntutnpc/backend
depends_on:
- db
restart: always
build:
context: .
dockerfile: server/Dockerfile
target: prod
networks:
- internal
- players
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./logs:/app/logs
- ./config:/app/config
- ./quests:/app/quests:ro
env_file:
- .env.prod
environment:
- DOCKER_NETWORK=linux-odyssey-players
- BACKEND_URL=http://backend:3000
- HOST_PROJECT_ROOT=${PWD}
analytics:
image: ntutnpc/analytics
build:
context: .
dockerfile: packages/analytics/Dockerfile
target: prod
restart: always
depends_on:
- db
networks:
- internal
ports:
- '3001:3001'
env_file:
- .env.prod
db:
image: mongo:6
restart: always
networks:
- internal
ports:
- '27017:27017'
volumes:
- mongo:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
env_file:
- .env.prod
base:
image: ntutnpc/quest-base
build:
context: .
dockerfile: ./quests/Dockerfile
networks:
internal:
players:
name: linux-odyssey-players
internal: true
volumes:
mongo: