-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_dev.yml
55 lines (53 loc) · 1.31 KB
/
docker-compose_dev.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
version: '3.3'
services:
web:
build:
context: ./LangExBank
dockerfile: Dockerfile
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
expose:
- 8000
env_file:
- ./env.prod
depends_on:
- db
# entrypoint: ./entrypoint.sh # For initial set-up
command: gunicorn testing_platform.wsgi:application --bind 0.0.0.0:8000 -t 500000 # For later launches
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
ports:
- 80:80
depends_on:
- web
db:
image: postgres:13.0-alpine
volumes:
- postgres_volume:/var/lib/postgresql/data
env_file:
- ./env.prod
reference_platform:
build:
context: ./reference_platform
dockerfile: Dockerfile
command: uwsgi --master --http 0.0.0.0:8000 --wsgi-file app.py --callable application --static-map /reference_platform/static=/usr/src/app/static
expose:
- 8000
env_file:
- ./env.prod
volumes:
- reference_volume:/usr/src/app/reference_data
distractor_selector:
image: niklogin/disselector:latest
expose:
- 5000
command: python -m api
volumes:
static_volume:
media_volume:
postgres_volume:
reference_volume: