-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
79 lines (75 loc) · 1.88 KB
/
docker-compose.dev.yml
File metadata and controls
79 lines (75 loc) · 1.88 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
version: '3'
services:
adminrd-web:
container_name: adminrd-web
#restart: always
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
adminrd-db:
condition: service_healthy
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}
ports:
- "8001:8000"
volumes:
- .:/usr/src/app
- /docker/adminrd/log:/usr/app/log
adminrd-task:
container_name: adminrd-task
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
adminrd-db:
condition: service_healthy
environment:
DB_USER: ${DB_USER}
DB_PW: ${DB_PW}
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
DATADIR: /data
SITE_NAME: adminrd.labs.vu.nl
SECRET: ${SECRET}
command: python manage.py qcluster
volumes:
- .:/usr/src/app
- /docker/adminrd/log:/usr/app/log
- ${DATASRC}:/data:rw
adminrd-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
volumes:
- /docker/adminrd/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d db -U django"]
interval: 5s
timeout: 5s
retries: 5
nginx:
image: nginx:latest
container_name: nginx
depends_on:
- adminrd-web
ports:
- "8081:80"
volumes:
- ./static:/static:ro # for syncing with django source code
- ./nginx_conf:/etc/nginx/conf.d:ro