-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 1.62 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
version: "3"
services:
django:
restart: always
build: ./django
expose:
- "8000"
links:
- postgis
- redis
volumes:
- ./django:/src
- ./frontend:/frontend
- ./nginx/site/static:/src/static:rw
- ./django/media:/usr/share/app/media:rw
- log_data:/var/log/django
- media_data:/usr/src/app/media
command: /usr/local/bin/daphne -b 0.0.0.0 -p 8000 asgi:application
celery:
restart: always
build: ./django
environment:
- C_FORCE_ROOT=true
links:
- postgis
- redis
volumes:
- ./django:/src
- log_data:/var/log/django
command: /usr/local/bin/celery -A peoplebackend worker -B -l info
nuxt:
restart: always
build: ./frontend
expose:
- "3000"
links:
- django
nginx:
restart: always
image: nginx:1.15.6
ports:
- "80:80"
- "443:443"
volumes:
- ./django/media:/usr/share/nginx/html/media:rw
- ./nginx/site:/usr/share/nginx/html:rw
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/certs:/etc/letsencrypt:rw
- ./nginx/certs-data:/data/letsencrypt:rw
links:
- django
- nuxt
postgis:
restart: always
image: mdillon/postgis:10
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- "5432"
redis:
restart: always
image: redis:4.0.10
expose:
- "6379"
volumes:
postgres_data:
log_data:
media_data: