-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
84 lines (78 loc) · 1.51 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
version: "3"
services:
ai_backend:
container_name: ai_backend
build:
dockerfile: Dockerfile
environment:
FLASK_ENV: development
FLASK_DEBUG: 1
command: gunicorn -w 5 -b 0:8000 wsgi:app
restart: unless-stopped
networks:
- aiary
nginx:
container_name: nginx
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/log:/var/log/nginx
expose:
- 80
depends_on:
- ai_backend
networks:
- aiary
ai_rabbitmq:
hostname: rabbit
container_name: ai_rabbitmq
image: rabbitmq:3-management
command: rabbitmq-server
restart: unless-stopped
environment:
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
ports:
- "5672:5672" # Default Port
- "15672:15672" # For UI
depends_on:
- ai_backend
networks:
- aiary
expose:
- "15672"
ai_celery:
container_name: ai_celery
build:
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- ai_backend
- ai_rabbitmq
networks:
- aiary
command:
[
"celery",
"-A",
"tasks",
"worker",
"--loglevel=info",
"--pool",
"threads",
]
ai_redis:
container_name: ai_redis
image: redis:alpine
command: redis-server --port 6000
ports:
- "6000:6000"
networks:
- aiary
networks:
aiary:
driver: bridge