-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (65 loc) · 1.57 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
version: '3.8'
services:
api:
image: taylorvance/hexachromix:api-latest
web:
image: taylorvance/hexachromix:web-latest
ports:
- "8600:80"
volumes:
- static:/app/staticfiles
- ./:/app
depends_on:
- gunicorn
- daphne
gunicorn:
image: taylorvance/hexachromixio:latest
command: "gunicorn -b 0.0.0.0:8000 hexachromixio.wsgi:application"
environment:
- DJANGO_SECRET_KEY
- DJANGO_DEBUG
- DJANGO_ALLOWED_HOSTS
- DJANGO_DB_ENGINE
- DJANGO_DB_NAME
- DJANGO_LOG_LEVEL
- DJANGO_CSRF_TRUSTED_ORIGINS
- HEXACHROMIX_API_URL
volumes:
- hexachromix_data:/data
- static:/app/staticfiles
- ./:/app
daphne:
image: taylorvance/hexachromixio:latest
command: "daphne -b 0.0.0.0 -p 8001 hexachromixio.asgi:application"
environment:
- DJANGO_SECRET_KEY
- DJANGO_DEBUG
- DJANGO_ALLOWED_HOSTS
- DJANGO_DB_ENGINE
- DJANGO_DB_NAME
- DJANGO_LOG_LEVEL
- DJANGO_CSRF_TRUSTED_ORIGINS
- HEXACHROMIX_API_URL
volumes:
- hexachromix_data:/data
- ./:/app
celery:
image: taylorvance/hexachromixio:latest
command: "celery -A hexachromixio worker -l info"
environment:
- DJANGO_SECRET_KEY
- DJANGO_DEBUG
- DJANGO_ALLOWED_HOSTS
- DJANGO_DB_ENGINE
- DJANGO_DB_NAME
- DJANGO_LOG_LEVEL
- DJANGO_CSRF_TRUSTED_ORIGINS
- HEXACHROMIX_API_URL
volumes:
- hexachromix_data:/data
- ./:/app
redis:
image: redis
volumes:
hexachromix_data:
static: