forked from nekoyume/nekoyume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (69 loc) · 1.48 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
version: '3'
services:
redis:
image: redis:alpine
networks: [nekoyume-net]
postgres:
image: postgres:alpine
networks: [nekoyume-net]
environment:
POSTGRES_PASSWORD: nekoyume
POSTGRES_DB: nekoyume
sync: &app
build: .
image: nekoyume/nekoyume
command:
-
nekoyume init --skip-sync &&
nekoyume sync
environment: &app_environments
CACHE_TYPE: redis
DATABASE_URL: postgresql://postgres:nekoyume@postgres/nekoyume
CELERY_BROKER_URL: redis://redis:6379
CELERY_RESULT_BACKEND: redis://redis:6379
REDIS_URL: redis://redis:6379
SEED_NODE_URL: http://web:8080
depends_on: [postgres, redis]
networks: [nekoyume-net]
web:
<<: *app
command:
-
nekoyume init --skip-sync &&
gunicorn
-b 0.0.0.0:8080
-w 3
-k gevent
--log-level debug
--reload
nekoyume.app:app;
volumes:
- '.:/app'
depends_on: [sync]
ports:
- "4000:8080"
restart: always
worker:
<<: *app
command:
-
nekoyume init --skip-sync &&
celery
-A nekoyume.app.cel
worker
-l info;
depends_on: [sync]
environment:
<<: *app_environments
C_FORCE_ROOT: "true"
miner:
<<: *app
command:
-
nekoyume init --skip-sync &&
nekoyume mine ${MINER_KEY} --sleep ${MINER_SLEEP_SEC}
depends_on: [sync]
environment:
<<: *app_environments
networks:
nekoyume-net: