-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
123 lines (121 loc) · 2.99 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: '2'
services:
ayanami:
build: .
image: ayanami
env_file: ./secrets.env
links:
- redis
- mysql
- graphite
command: >
bash -lc "./wait-for-it.sh -t 0 redis:6379; ./wait-for-it.sh -t 0 mysql:3306;
passenger start"
restart: unless-stopped
ports:
- "127.0.0.1:3456:3000"
workers:
restart: unless-stopped
build: .
image: ayanami
env_file: ./secrets.env
links:
- redis
- mysql
- graphite
command: >
bash -lc "./wait-for-it.sh -t 0 redis:6379; ./wait-for-it.sh -t 0 mysql:3306;
rake db:check || rake db:create db:structure:load;
rake db:migrate;
rails runner 'HeatWeaponCacheJob.perform_later';
bundle exec sidekiq -C config/sidekiq.yml"
mysql:
env_file: ./secrets.env
image: mysql
entrypoint: /entrypoint.sh
command: mysqld
restart: unless-stopped
ports:
- "0.0.0.0:13306:3306"
volumes:
- /srv/ayanami/mysql:/var/lib/mysql
redis:
volumes:
- redis-data:/data
image: redis
restart: unless-stopped
command: redis-server --appendonly yes
noxus-web:
restart: unless-stopped
env_file: ./secrets.env
links:
- mysql
build: noxus
ports:
- "127.0.0.1:3457:80"
noxus-daemon:
restart: unless-stopped
env_file: ./secrets.env
links:
- mysql
build: noxus
command: >
bash -lc "envsubst < ./hlxce/scripts/hlstats.conf.docker-env > ./hlxce/scripts/hlstats.conf;
cd ./hlxce/scripts/;
./hlstats.pl --configfile=hlstats.conf --port=27500;"
ports:
- "0.0.0.0:27501:27500/udp"
noxus-cron:
restart: unless-stopped
env_file: ./secrets.env
links:
- mysql
build: noxus
command: >
bash -lc "envsubst < ./hlxce/scripts/hlstats.conf.docker-env > ./hlxce/scripts/hlstats.conf;
cd ./hlxce/scripts/;
cron && tail -f /var/log/cron.log;"
sourcebans:
restart: unless-stopped
env_file: ./secrets.env
links:
- mysql
build: sourcebans
ports:
- "127.0.0.1:3460:80"
graphite:
restart: unless-stopped
image: hopsoft/graphite-statsd
ports:
- "127.0.0.1:33456:80"
volumes:
- graphite-data:/opt/graphite/storage
- graphite-logs:/var/log/graphite
stats:
restart: unless-stopped
build: ./docker-docker-stats-statsd/
privileged: true
environment:
STATSD_HOST: graphite
STATSD_PORT: 8125
STATSD_PREFIX: docker.
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- graphite
lb:
restart: unless-stopped
image: dockercloud/haproxy:latest
links:
- ayanami
environment:
TCP_PORTS: 3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "127.0.0.1:3459:80"
volumes:
graphite-data: {}
graphite-logs: {}
redis-data: {}
mysql-data: {}