forked from codexgigassys/codex-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
21 lines (20 loc) · 793 Bytes
/
docker-compose.yml
File metadata and controls
21 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
db:
image: mongo:3.2
volumes:
- ../mongo-data/:/data/db
httpd:
image: httpd:2.4
volumes:
- ../codex-frontend/:/usr/local/apache2/htdocs/
ports:
- "6100:80"
api:
build: .
command: bash -c "(echo updating pip packages && pip install -r /myapp/src/pip_requeriments.txt && echo starting redis && service redis-server start && (echo starting redis worker default && rq worker --path /myapp/src/ default &) && (echo starting redis worker process && rq worker --path /myapp/src/ process &) && (echo starting redis worker checkup && rq worker --path /myapp/src/MalwareCheckUp/ checkup &)) && echo starting api...Check 127.0.0.1:8080 && python /myapp/src/api2.py -H $$HOSTNAME"
volumes:
- .:/myapp
ports:
- "4500:8080"
links:
- db
- httpd