-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
35 lines (33 loc) · 982 Bytes
/
docker-compose.yaml
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
services:
web:
image: eftdms-web
build:
context: .
dockerfile: docker/web/Dockerfile
restart: unless-stopped
volumes:
- backend_static:/usr/share/nginx/html/static:ro
- ./provision:/usr/share/nginx/html/provision:ro
- ./docker/web/provision.htpasswd:/etc/nginx/provision.htpasswd:ro
ports:
- "${EFTDMS_WEB_PORT}:8080/tcp"
backend:
image: eftdms-backend
build:
context: .
dockerfile: docker/backend/Dockerfile
environment:
- EFTDMS_DJANGO_SECRET_KEY=${EFTDMS_DJANGO_SECRET_KEY}
- EFTDMS_DJANGO_BASE_URL=${EFTDMS_DJANGO_BASE_URL}
- EFTDMS_DJANGO_BACKEND_INIT=true
- EFTDMS_DJANGO_BACKEND_MIGRATE=true
- EFTDMS_DJANGO_TIMEZONE=${EFTDMS_DJANGO_TIMEZONE}
restart: unless-stopped
volumes:
- ./db.sqlite3:/app/db.sqlite3
- ./provision:/app/provision:ro
- backend_static:/mnt/backend_static
expose:
- "8000/tcp"
volumes:
backend_static: