-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (65 loc) · 1.1 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
version: '3.7'
services:
postgres:
image: postgres:12-alpine
restart: always
volumes:
- ./data/postgres:/var/lib/postgresql/data
env_file:
- .env
networks:
- live
redis:
image: 'redis:alpine'
hostname: redis
networks:
- live
app:
build:
context: .
dockerfile: Dockerfile
hostname: app
stdin_open: true
expose:
- '8000'
volumes:
- .:/app
command: bash -c "python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
depends_on:
- redis
- postgres
env_file:
- .env
networks:
- live
nginx:
image: nginx
hostname: nginx
ports:
- '82:8000'
volumes:
- ./config/nginx:/etc/nginx/conf.d
depends_on:
- app
networks:
- live
celery:
build:
context: .
dockerfile: Dockerfile
command: "celery -A image_jinn worker -l info"
volumes:
- .:/app
env_file:
- ./.env
depends_on:
- app
- redis
- postgres
restart: on-failure
networks:
- live
networks:
live: