-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
80 lines (76 loc) · 1.91 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
80 lines (76 loc) · 1.91 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
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:
adminyoda-web:
container_name: adminyoda-web
#restart: always
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
- adminyoda-db
environment:
DB_USER: ${DB_USER}
DB_PW: ${DB_PW}
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
SITE_NAME: 127.0.0.1
SECRET: ${SECRET}
REPORTS_DIR: /usr/app/reports
ports:
- "8000:8000"
volumes:
- .:/usr/src/app
- /docker/adminyoda/log:/usr/app/log
- /docker/adminyoda/reports:/usr/app/reports
adminyoda-task:
container_name: adminyoda-task
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
- adminyoda-db
environment:
DB_USER: ${DB_USER}
DB_PW: ${DB_PW}
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
DATADIR: /data
SRAMDATADIR: /sramdata
SITE_NAME: adminyoda.labs.vu.nl
SECRET: ${SECRET}
REPORTS_DIR: /usr/app/reports
command: python manage.py qcluster
volumes:
- .:/usr/src/app
- /docker/adminyoda/log:/usr/app/log
- /docker/adminyoda/reports:/usr/app/reports
- ${DATASRC}:/data:rw
- ${SRAMDATASRC}:/sramdata:rw
adminyoda-db:
container_name: ${DB_HOST}
image: postgres:14
environment:
POSTGRES_PASSWORD: ${DB_PW}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "15432:5432"
volumes:
- /docker/adminyoda/db:/var/lib/postgresql/data
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- adminyoda-web
ports:
- "8080:80"
volumes:
- ./static:/static:ro # for syncing with django source code
- ./nginx_conf:/etc/nginx/conf.d:ro