This commit is contained in:
relikd
2024-07-25 00:09:23 +02:00
commit d0dd4e7925
58 changed files with 1920 additions and 0 deletions

31
backend/docker-compose.yml Executable file
View File

@@ -0,0 +1,31 @@
services:
app:
container_name: leerstand
build:
context: .
# dockerfile: .
pull_policy: build
ports:
- 127.0.0.1:8098:8000
image: leerstand:latest
working_dir: /django_project
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
ADMIN_URL: ${ADMIN_URL}
DEBUG: ${DEBUG:-0}
volumes:
- volume-leerstand:/django_project/db
- /srv/http/leerstand-data:/django_project/data
- /srv/http/leerstand-static:/django_project/static
restart: unless-stopped
networks:
- network-leerstand
volumes:
volume-leerstand:
name: leerstand
networks:
network-leerstand:
name: leerstand