-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 2.14 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.7"
services:
proxy:
image: uralm1/uwc-llng-proxy
container_name: adup-proxy
hostname: adup
domainname: uwc.ufanet.ru
networks:
uwcnet:
ipv4_address: 10.14.72.3
default:
dns:
- 10.14.0.2
- 10.14.0.4
volumes:
- /etc/ssl/certs/uwc.ufanet.ru.pem:/etc/ssl/certs/u.pem:ro
- /etc/ssl/private/uwc.ufanet.ru-key.pem:/etc/ssl/private/u.key:ro
- public:/opt/adup/public
environment:
- TZ=Asia/Yekaterinburg
- PUBLIC_ROOT=/opt/adup/public
- PROXY_ADDR=http://adup-app:3000/
depends_on:
- app
links:
- app:adup-app
restart: unless-stopped
app:
image: uralm1/adup
container_name: adup
volumes:
- /srv/adup/adup.conf:/opt/adup/adup.conf:ro
- /srv/adup/adup-cert.pem:/opt/adup/adup-cert.pem:ro
- /srv/adup/adup-key.pem:/opt/adup/adup-key.pem:ro
- /srv/adup/ca.pem:/opt/adup/ca.pem:ro
- tmp:/opt/adup/tmp
- public:/opt/adup/public
environment:
- TZ=Asia/Yekaterinburg
depends_on:
- worker
restart: unless-stopped
worker:
image: uralm1/adup
container_name: adup-minion
volumes:
- /srv/adup/adup.conf:/opt/adup/adup.conf:ro
- /srv/adup/adup-cert.pem:/opt/adup/adup-cert.pem:ro
- /srv/adup/adup-key.pem:/opt/adup/adup-key.pem:ro
- /srv/adup/ca.pem:/opt/adup/ca.pem:ro
- tmp:/opt/adup/tmp
environment:
- TZ=Asia/Yekaterinburg
stop_signal: SIGINT
command: sh -c "script/check_db_hosts && script/adup minion worker -m production -j 1"
restart: unless-stopped
cron:
image: uralm1/adup
container_name: adup-cron
volumes:
- /srv/adup/adup.conf:/opt/adup/adup.conf:ro
- /srv/adup/adup-cert.pem:/opt/adup/adup-cert.pem:ro
- /srv/adup/adup-key.pem:/opt/adup/adup-key.pem:ro
- /srv/adup/ca.pem:/opt/adup/ca.pem:ro
- tmp:/opt/adup/tmp
environment:
- TZ=Asia/Yekaterinburg
command: sh -c "script/check_db_hosts && script/adup cron -m production"
depends_on:
- worker
restart: unless-stopped
volumes:
tmp:
public:
networks:
uwcnet:
external:
name: uwcnet