-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
67 lines (67 loc) · 1.72 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
version: '3'
services:
kotoba-bot:
image: registry.gitlab.com/kotoba/monochrome2/bot:latest
build:
context: .
dockerfile: ./bot/Dockerfile
restart: unless-stopped
environment:
MONGO_HOST: 'mongo_readwrite:27017'
WORKER_HOST: 'kotoba-worker'
FORCE_COLOR: '1'
volumes:
- ./user_data/bot:/var/app/data
- ./user_data/shared_data:/var/shared_data
- ./config:/var/config
depends_on:
- mongo_readwrite
kotoba-web:
image: registry.gitlab.com/kotoba/monochrome2/web:latest
build:
context: .
dockerfile: ./kotobaweb/Dockerfile
restart: unless-stopped
kotoba-api:
image: registry.gitlab.com/kotoba/monochrome2/api:latest
build:
context: .
dockerfile: ./api/Dockerfile
restart: always
environment:
MONGO_HOST: 'mongo_readwrite:27017'
NODE_ENV: 'production'
volumes:
- ./user_data/shared_data:/var/shared_data
- ./config:/var/config
depends_on:
- mongo_readwrite
kotoba-worker:
image: registry.gitlab.com/kotoba/monochrome2/worker:latest
build:
context: .
dockerfile: ./worker/Dockerfile
restart: unless-stopped
environment:
MONGO_HOST: 'mongo_readwrite:27017'
volumes:
- ./config:/var/config
depends_on:
- mongo_readwrite
mongo_readwrite:
image: mongo:6.0.8
command: '--wiredTigerCacheSizeGB 4.00'
restart: unless-stopped
volumes:
- ./user_data/mongo_readwrite_data:/data/db
ports:
- '127.0.0.1:50001:27017'
nginx:
image: registry.gitlab.com/kotoba/monochrome2/nginx:latest
build: ./nginx
restart: unless-stopped
depends_on:
- kotoba-api
- kotoba-web
ports:
- '80:80'