2023-01-07 17:09:10 +00:00
|
|
|
---
|
|
|
|
services:
|
2023-01-20 14:40:07 +00:00
|
|
|
backend:
|
2023-01-07 17:09:10 +00:00
|
|
|
image: registry.kucharczyk.xyz/timetracker
|
2023-01-07 20:59:09 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2023-01-07 17:09:10 +00:00
|
|
|
environment:
|
|
|
|
- TZ=Europe/Prague
|
|
|
|
- CSRF_TRUSTED_ORIGINS="https://tracker.kucharczyk.xyz"
|
|
|
|
user: "1000"
|
2023-01-20 14:40:07 +00:00
|
|
|
volumes:
|
2023-11-16 15:27:01 +00:00
|
|
|
- "static-files:/var/www/django/static"
|
|
|
|
- "$PWD/db.sqlite3:/home/timetracker/app/db.sqlite3"
|
2023-01-20 14:40:07 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
image: caddy
|
|
|
|
volumes:
|
2023-11-16 15:27:01 +00:00
|
|
|
- "static-files:/usr/share/caddy:ro"
|
2023-01-20 14:40:07 +00:00
|
|
|
- "$PWD/Caddyfile:/etc/caddy/Caddyfile"
|
2023-01-07 17:09:10 +00:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2023-01-20 14:40:07 +00:00
|
|
|
depends_on:
|
|
|
|
- backend
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
static-files:
|
|
|
|
|
2023-11-16 15:27:01 +00:00
|
|
|
|