-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1017 Bytes
/
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
services:
web:
build: .
command: sh launch_docker.sh
restart: always
volumes:
- .:/app
expose:
- "5000"
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_BACKEND_URL=redis://redis:6379/0
- DJANGO_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=admin
- DEBUG=False
depends_on:
- redis
celery:
build: .
working_dir: /app/routejet
command: celery -A routejet worker --beat
restart: always
volumes:
- .:/app
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_BACKEND_URL=redis://redis:6379/0
- DEBUG=False
depends_on:
- redis
redis:
image: redis:7.0.4
restart: always
volumes:
- ./data/redis:/data
nginx:
image: nginx:1.23.1
restart: always
volumes:
- ./config/nginx:/etc/nginx/templates
- .:/app
ports:
- "80:80"
depends_on:
- web