-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
75 lines (75 loc) · 1.59 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
services:
nginx:
depends_on:
- daphne
image: nginx
ports:
- '443:443'
volumes:
- './files/nginx/templates:/etc/nginx/templates'
- './files/ssl:/etc/ssl/numbas'
- numbas:/srv
restart: always
redis:
expose:
- "6379"
image: redis
volumes:
- redis:/data
restart: always
postgres:
env_file:
- 'settings.env'
environment:
PGDATA: /var/lib/postgresql/data
POSTGRES_DB: numbas_lti
POSTGRES_USER: numbas_lti
expose:
- "5432"
image: postgres
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
numbas-setup:
env_file:
- 'settings.env'
image: numbas/numbas-lti-provider
depends_on:
- postgres
- redis
volumes:
- numbas:/srv
- ./files/numbas-lti-provider:/setup-files
working_dir: /setup-files
daphne:
env_file:
- 'settings.env'
image: numbas/numbas-lti-provider
command: /usr/local/bin/daphne numbasltiprovider.asgi:application --port 8700 --bind 0.0.0.0 -v 2
depends_on:
- postgres
- redis
expose:
- "8700"
restart: always
user: www-data
volumes:
- numbas:/srv
working_dir: /opt/numbas-lti-provider
huey:
env_file:
- 'settings.env'
image: numbas/numbas-lti-provider
command: /usr/local/bin/python /opt/numbas-lti-provider/manage.py run_huey
depends_on:
- postgres
- redis
restart: always
user: www-data
volumes:
- numbas:/srv
working_dir: /opt/numbas-lti-provider/
volumes:
pgdata:
numbas:
redis: