-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (81 loc) · 2.25 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
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: szatan
POSTGRES_USER: zmora
POSTGRES_DB: zmora
volumes:
- psql-db:/var/lib/postgresql/data
restart: always
rabbitmq:
image: "rabbitmq:3.6.11-management"
hostname: rabbitmq
environment:
RABBITMQ_VM_MEMORY_HIGH_WATERMARK: 256MiB
RABBITMQ_DEFAULT_USER: zmora
RABBITMQ_DEFAULT_PASS: szatan
ports:
- "127.0.0.1:15672:15672"
volumes:
- rabbitmq:/var/lib/rabbitmq
restart: always
api:
image: zmoraagh/zmora-server
hostname: api
environment:
ZMORA_DB_HOST: db
ZMORA_DB_USER: zmora
ZMORA_DB_PASSWORD: szatan
ZMORA_DB_NAME: zmora
ZMORA_RABBITMQ_URI: "amqp://zmora:szatan@rabbitmq"
SENTRY_DSN: "off"
GRAPHITE_URI: "grafana_graphite:2003"
SECRET_KEY_BASE: d8efe34de6c2d4bcdd8a6c212f04f90068b37d314c69837cb7ca63e15863829d8ba64d77343d6a77bff717ab90c27360b9719c4d15991977109853b84490e8f4
ports:
- "127.0.0.1:3000:80"
volumes:
- rails-data:/opt/zmora-server/public
restart: always
ui:
image: zmoraagh/zmora-ui
environment:
API_URI: "http://api.zmora.kis.agh.edu.pl"
ports:
- "127.0.0.1:3100:80"
restart: always
rabbit-listener:
image: zmoraagh/zmora-server
environment:
ZMORA_DB_HOST: db
ZMORA_DB_USER: zmora
ZMORA_DB_PASSWORD: szatan
ZMORA_DB_NAME: zmora
ZMORA_RABBITMQ_URI: "amqp://zmora:szatan@rabbitmq"
SENTRY_DSN: "off"
GRAPHITE_URI: "grafana_graphite:2003"
SECRET_KEY_BASE: d8efe34de6c2d4bcdd8a6c212f04f90068b37d314c69837cb7ca63e15863829d8ba64d77343d6a77bff717ab90c27360b9719c4d15991977109853b84490e8f4
command: bundle exec -- ./bin/rake zmora:listen_rabbit RAILS_ENV=production
restart: always
judge:
image: zmoraagh/zmora-judge
environment:
ZMORA_RABBITMQ_URI: "amqp://zmora:szatan@rabbitmq"
restart: always
grafana_graphite:
image: zmoraagh/graphite
ports:
- '127.0.0.1:3200:80'
volumes:
- whisper:/opt/graphite/storage/whisper
- grafana:/opt/grafana/data
- graphite:/opt/graphite/storage/log
restart: always
volumes:
psql-db:
rails-data:
rabbitmq:
grafana:
graphite:
whisper: