mirror of
https://github.com/tomasriveral/vps-config.git
synced 2026-08-11 18:18:38 +02:00
45 lines
892 B
YAML
45 lines
892 B
YAML
services:
|
|
|
|
caddy:
|
|
depends_on:
|
|
- archivebox
|
|
image: caddy:latest
|
|
container_name: caddy
|
|
restart: unless-stopped
|
|
environment:
|
|
HLEDGER_PASSWORD_HASH: "${HLEDGER_PASSWORD_HASH}"
|
|
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
archivebox:
|
|
image: archivebox/archivebox:latest
|
|
container_name: archivebox
|
|
restart: unless-stopped
|
|
|
|
command: server 0.0.0.0:8000
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- TZ=Europe/Zurich
|
|
|
|
volumes:
|
|
# Local SSD: database + config + metadata
|
|
- /opt/server/archivebox/archivebox-data:/data
|
|
|
|
# kDrive: only the heavy archive content
|
|
- /mnt/kdrive/Archive:/data/archive
|
|
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|