-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.override.yml.full.dist
109 lines (108 loc) · 3.58 KB
/
docker-compose.override.yml.full.dist
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
version: '3.1'
services:
tarantool:
container_name: jobserver_tarantool
image: haproxy:1-alpine
restart: always
volumes:
- ./res/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
command: ""
ports:
- "3301:3301"
- "8080:8080"
environment: []
depends_on:
- tarantool1
- tarantool2
tarantool1:
container_name: jobserver_tarantool1
image: tarantool/tarantool:1
restart: always
volumes:
- ./app/config/jobserver_config.lua:/opt/tarantool/jobserver_config.lua
- ./app/jobserver.lua:/usr/share/tarantool/jobserver.lua
- ./app/monitor.lua:/usr/share/tarantool/monitor.lua
- ./app/jobserver_instance.lua:/opt/tarantool/jobserver_instance.lua
command: tarantool /opt/tarantool/jobserver_instance.lua
ports:
- "3302:3301"
environment:
- TARANTOOL_REPLICATION_SOURCE=tarantool1,tarantool2
- TARANTOOL_USER_NAME
- TARANTOOL_USER_PASSWORD
- TARANTOOL_MONITOR_HOST
- TARANTOOL_MONITOR_PORT
tarantool2:
container_name: jobserver_tarantool2
image: tarantool/tarantool:1
restart: always
environment:
- TARANTOOL_REPLICATION_SOURCE=tarantool1,tarantool2
- TARANTOOL_USER_NAME
- TARANTOOL_USER_PASSWORD
- TARANTOOL_MONITOR_HOST
- TARANTOOL_MONITOR_PORT
volumes:
- ./app/config/jobserver_config.lua:/opt/tarantool/jobserver_config.lua
- ./app/jobserver.lua:/usr/share/tarantool/jobserver.lua
- ./app/monitor.lua:/usr/share/tarantool/monitor.lua
- ./app/jobserver_instance.lua:/opt/tarantool/jobserver_instance.lua
command: tarantool /opt/tarantool/jobserver_instance.lua
ports:
- "3303:3301"
worker:
volumes:
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}
- ./docker/worker/dev.ini:/usr/local/etc/php/conf.d/99-dev.ini
environment:
- SSH_AUTH_SOCK=${SSH_AUTH_SOCK}
- TNT_JOBQUEUE_USER=${TARANTOOL_USER_NAME}
- TNT_JOBQUEUE_PASSWORD=${TARANTOOL_USER_PASSWORD}
- XDEBUG_CONFIG=remote_host=${LOCAL_IP}
- PHP_IDE_CONFIG=serverName=jobserver.local
tarantool_admin:
container_name: jobserver_tarantool_admin
image: quay.io/basis-company/tarantool-admin
restart: always
ports:
- "8001:80"
depends_on:
- tarantool
environment:
# https://github.com/basis-company/tarantool-admin#configure-using-env
- TARANTOOL_TCP_NODELAY=1
- TARANTOOL_DATABASE_QUERY=1
- TARANTOOL_CONNECTIONS=${TARANTOOL_USER_NAME}:${TARANTOOL_USER_PASSWORD}@tarantool:3301,${TARANTOOL_USER_NAME}:${TARANTOOL_USER_PASSWORD}@tarantool1:3301,${TARANTOOL_USER_NAME}:${TARANTOOL_USER_PASSWORD}@tarantool2:3301
prometheus:
container_name: jobserver_prometheus
image: prom/prometheus:latest
restart: always
volumes:
- ./res/prometheus/alert.rules:/etc/prometheus/alert.rules
- ./res/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--log.level=debug'
alertmanager:
container_name: jobserver_alertmanager
image: prom/alertmanager:latest
restart: always
volumes:
- ./res/prometheus/alertmanager.yml:/etc/alertmanager/config.yml
ports:
- "9093:9093"
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--log.level=debug'
grafana:
container_name: jobserver_grafana
image: grafana/grafana:latest
restart: always
volumes:
- ./res/grafana/provisioning:/etc/grafana/provisioning
- ./var/grafana:/var/lib/grafana
ports:
- "3000:3000"
user: "0"