-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.19 KB
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
services:
memcached:
image: memcached:1.6-alpine
apiserver:
build: ./apiserver
ports:
- "8000:8000"
volumes:
- ./apiserver:/app
- ./apiserver/data:/app/data
environment:
- DEBUG=true
- BINDALL=true
- MEMCACHED_LOCATION=memcached:11211
depends_on:
- memcached
command: >
sh -c "
test -f apiserver/secrets.py || cp apiserver/secrets.py.example apiserver/secrets.py &&
python manage.py makemigrations &&
python manage.py makemigrations api &&
python manage.py migrate --run-syncdb &&
python manage.py runserver 0.0.0.0:8000
"
webclient:
build: ./webclient
ports:
- "3000:3000"
volumes:
- ./webclient/src:/app/src
- ./webclient/public:/app/public
environment:
- HOST=0.0.0.0
- CHOKIDAR_USEPOLLING=true
- CI=false
- BROWSER=none
stdin_open: true
tty: true
authserver:
build: ./authserver
ports:
- "5050:5000"
volumes:
- ./authserver:/app
profiles:
- auth
ldapserver:
build: ./ldapserver
ports:
- "5051:5000"
volumes:
- ./ldapserver:/app
profiles:
- ldap