-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
58 lines (57 loc) · 1.31 KB
/
docker-compose.prod.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
version: '3.1'
services:
flask:
build:
context: ./
dockerfile: Dockerfile
command: bash /var/www/elexifier-api/start.sh
volumes:
- /home/jgradisar/elexifier_data/media:/var/www/elexifier-api/app/media
extra_hosts:
- "host:10.10.1.8"
networks:
elexifier-network:
aliases:
- flask-app
ports:
- 5000:8080
restart: unless-stopped
redis:
image: redis
extra_hosts:
- "host:10.10.1.8"
networks:
elexifier-network:
aliases:
- redis
restart: unless-stopped
worker1:
build: .
command: celery -A app:celery worker -P threads --loglevel=info
volumes:
- /home/jgradisar/elexifier_data/media:/var/www/elexifier-api/app/media
extra_hosts:
- "host:10.10.1.8"
networks:
elexifier-network:
aliases:
- worker1
restart: unless-stopped
depends_on:
- redis
worker2:
build: .
command: celery -A app:celery worker -P threads --loglevel=info
volumes:
- /home/jgradisar/elexifier_data/media:/var/www/elexifier-api/app/media
extra_hosts:
- "host:10.10.1.8"
networks:
elexifier-network:
aliases:
- worker2
restart: unless-stopped
depends_on:
- redis
networks:
elexifier-network: