timetracker/docker-compose.yml

29 lines
566 B
YAML
Raw Normal View History

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:
- "static-files:/home/timetracker/app/static"
restart: unless-stopped
frontend:
image: caddy
volumes:
- "static-files:/usr/share/caddy"
- "$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: