-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
74 lines (74 loc) · 1.59 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
version: '2'
services:
web:
build: ./web
hostname: web
volumes:
- ./web/app:/app
- ./archive:/archive
- ./scripts:/scripts
ports:
- "5555:5555"
environment:
- FLASK_APP=main.py
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_KEY=${FLASK_KEY}
- PYTHONUNBUFFERED=1
- 'RUN=flask run --host=0.0.0.0 --port=5555'
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
command: flask run --host=0.0.0.0 --port=5555
depends_on:
- "mq"
restart: always
networks:
- warcnet
mq:
image: rabbitmq:3.7.6-alpine
hostname: mq
environment:
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
volumes:
- ./queue:/q
ports:
- "15672"
- "5672"
restart: always
networks:
- warcnet
worker:
build: ./worker
hostname: worker
volumes:
- ./archive:/archive
- ./scripts:/scripts
environment:
- PYTHONUNBUFFERED=1
- ERROR_EMAIL=${ERROR_EMAIL}
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
- INDOCKER=true
depends_on:
- "mq"
restart: always
shm_size: 1G
networks:
- warcnet
# playback:
# build: ./playback
# hostname: playback
# volumes:
# - ./archive:/archive
# - ./playback/webarchive:/webarchive
# environment:
# - PYTHONUNBUFFERED=1
# - ERROR_EMAIL=${ERROR_EMAIL}
# depends_on:
# - "web"
# restart: always
# networks:
# - warcnet
networks:
warcnet:
driver: bridge