-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose.yml
150 lines (141 loc) · 3.65 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '2'
services:
db:
image: mongo:3.2
volumes:
- ../mongo-data/:/data/db
links:
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "db"
httpd:
image: httpd:2.4
volumes:
- ../codex-frontend/:/usr/local/apache2/htdocs/
ports:
- "6100:80"
links:
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "httpd"
api:
#image: codexgigassys/codex-backend:latest
build: .
command: bash -c "echo updating pip packages && pip install -r /myapp/src/pip_requirements.txt && pip install -r /myapp/src/pip_vt_api_requirements.txt && echo checking indexes && python -u /myapp/src/Scripts/create_indexes.py && echo starting api...Check 127.0.0.1:8080 && python -u /myapp/src/api2.py -H $$HOSTNAME"
volumes:
- ./src/config/:/myapp/src/config/
- ./files_to_load/:/myapp/files_to_load/
ports:
- "4501:8080"
links:
- db
- httpd
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "api"
redis:
image: redis:latest
links:
- api
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "redis"
worker:
#image: codexgigassys/codex-backend:worker
build:
context: ./src
dockerfile: workerDockerfile
command: bash -c "rq worker --path /myapp/ --url redis://codexbackend_redis_1:6379/0 task_private_vt task_public_vt task_no_vt process checkup"
volumes:
- ./src/config/:/myapp/config/
links:
- db
- redis
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "worker"
worker_private_vt:
#image: codexgigassys/codex-backend:worker
build:
context: ./src
dockerfile: workerDockerfile
command: bash -c "rq worker --path /myapp/ --url redis://codexbackend_redis_1:6379/0 task_private_vt"
volumes:
- ./src/config/:/myapp/config/
links:
- db
- redis
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "worker_private_vt"
worker_public_vt:
#image: codexgigassys/codex-backend:worker
build:
context: ./src
dockerfile: workerDockerfile
command: bash -c "rq worker --path /myapp/ --url redis://codexbackend_redis_1:6379/0 task_public_vt"
volumes:
- ./src/config/:/myapp/config/
links:
- db
- redis
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "worker_public_vt"
worker_no_vt:
#image: codexgigassys/codex-backend:worker
build:
context: ./src
dockerfile: workerDockerfile
command: bash -c "rq worker --path /myapp/ --url redis://codexbackend_redis_1:6379/0 task_no_vt process checkup"
volumes:
- ./src/config/:/myapp/config/
links:
- db
- redis
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "worker_no_vt"
cron:
#image: codexgigassys/codex-backend:cron
build:
context: ./src/cron
dockerfile: cronDockerfile
environment:
- CRON_ENTRY=5 0 * * * wget -O - http://codexbackend_api_1:8080/api/v1/cron
links:
- api
- syslog
logging:
driver: syslog
options:
syslog-address: "udp://127.0.0.1:5514"
tag: "cron"
syslog:
image: voxxit/rsyslog
ports:
- "5514:514/udp"