-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.76 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
version: '3'
services:
adminrd-web:
container_name: adminrd-web
restart: unless-stopped
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
- adminrd-db
environment:
DB_USER: ${DB_USER}
DB_PW: ${DB_PW}
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
SITE_NAME: adminrd.labs.vu.nl
SECRET: ${SECRET}
command: gunicorn adminrd.wsgi:application --bind 0.0.0.0:8000
volumes:
- /docker/adminrd/log:/usr/app/log
adminrd-task:
container_name: adminrd-task
restart: unless-stopped
build:
context: .
args:
- APP_USER_UID=${USER_UID}
- APP_USER_GID=${USER_GID}
user: ${USER_UID}:${USER_GID}
depends_on:
- adminrd-db
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:
- /docker/adminrd/log:/usr/app/log
- ${DATASRC}:/data:rw
adminrd-db:
container_name: ${DB_HOST}
image: postgres:14
restart: unless-stopped
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
nginx:
image: nginx:latest
restart: unless-stopped
depends_on:
- adminrd-web
container_name: nginx
ports:
- "443:443"
- "80:80"
volumes:
- ./static:/static:ro # for syncing with django source code
- /docker/adminrd/nginx_conf:/etc/nginx/conf.d:ro
- /home/acme:/acme:ro