-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
106 lines (102 loc) · 2.33 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
106 lines (102 loc) · 2.33 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
services:
mariadb:
image: mariadb:11
environment:
MARIADB_ROOT_PASSWORD: genesis
MARIADB_DATABASE: genesis
MARIADB_USER: genesis
MARIADB_PASSWORD: genesis
ports:
- "3306:3306"
healthcheck:
test: [CMD, healthcheck.sh, --connect, --innodb_initialized]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
volumes:
- ./data/db:/var/lib/mysql
bot:
build:
context: .
dockerfile: bot.Dockerfile
depends_on:
mariadb:
condition: service_healthy
env_file: .env.local
environment:
SCOPE: BOT
MYSQL_HOST: mariadb
MYSQL_PORT: 3306
MYSQL_USER: genesis
MYSQL_PASSWORD: genesis
MYSQL_DB: genesis
LOG_LEVEL: INFO
WORLDSTATE_TIMEOUT: 60000
SHARDS: 1
LOCAL_SHARDS: 1
SHARD_OFFSET: 0
WAIT_HOSTS: mariadb:3306
WAIT_TIMEOUT: 60
volumes:
- .:/app/genesis
- bot_node_modules:/app/genesis/node_modules
command: npx tsx packages/bot/main.ts
worker:
profiles:
- worker
build:
context: .
dockerfile: notifier.Dockerfile
depends_on:
mariadb:
condition: service_healthy
bot:
condition: service_started
env_file: .env.local
environment:
SCOPE: WORKER
MYSQL_HOST: mariadb
MYSQL_PORT: 3306
MYSQL_USER: genesis
MYSQL_PASSWORD: genesis
MYSQL_DB: genesis
WORLDSTATE_TIMEOUT: 10000
PLATFORMS: pc
LOCALES: en
DEF_USER: Genesis
WAIT_HOSTS: mariadb:3306
WAIT_TIMEOUT: 60
volumes:
- .:/app/genesis
- worker_node_modules:/app/genesis/node_modules
command: npx tsx packages/worker/main.ts
web:
profiles:
- web
build:
context: .
dockerfile: web.Dockerfile
depends_on:
mariadb:
condition: service_healthy
env_file: .env.local
environment:
SCOPE: WEB
MYSQL_HOST: mariadb
MYSQL_PORT: 3306
MYSQL_USER: genesis
MYSQL_PASSWORD: genesis
MYSQL_DB: genesis
WEB_BASE_URL: http://localhost:3131
AUTH_URL: http://localhost:3131
PORT: 3131
ports:
- "3131:3131"
volumes:
- .:/app/genesis
- web_node_modules:/app/genesis/packages/web/node_modules
volumes:
bot_node_modules:
worker_node_modules:
web_node_modules: