-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
46 lines (46 loc) · 1.05 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
services:
web:
build: ./web
hostname: web
volumes:
- ./web/app:/app
- ./data:/data
ports:
- "7777:7777"
environment:
- FLASK_APP=main.py
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_KEY=${FLASK_KEY}
- PYTHONUNBUFFERED=1
- 'RUN=flask run --host=0.0.0.0 --port=7777'
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
command: flask run --host=0.0.0.0 --port=7777
depends_on:
- "mq"
restart: unless-stopped
mq:
image: rabbitmq:3.8.28-alpine
hostname: mq
environment:
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
volumes:
- ./queue:/q
ports:
- "15672"
- "5672"
restart: unless-stopped
worker:
build: ./worker
hostname: worker
volumes:
- ./data:/data
environment:
- PYTHONUNBUFFERED=1
- RABBITMQ_DEFAULT_USER=${RMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
depends_on:
- "mq"
restart: unless-stopped
shm_size: 1G