29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
services:
|
|
toollist:
|
|
image: git.revwal.de/oliver/toollist:latest
|
|
volumes:
|
|
# Persist the TOML data file across container restarts/upgrades.
|
|
# On first run the seed data baked into the image is used;
|
|
# subsequent writes go straight to this named volume.
|
|
- ./data:/app/data
|
|
environment:
|
|
LEPTOS_ENV: PROD
|
|
LEPTOS_SITE_ADDR: "0.0.0.0:3000"
|
|
restart: unless-stopped
|
|
networks:
|
|
- web
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=web"
|
|
- "traefik.http.routers.toollist.rule=Host(`toollist.revwal.de`)"
|
|
- "traefik.http.routers.toollist.entrypoints=websecure"
|
|
- "traefik.http.routers.toollist.tls=true"
|
|
- "traefik.http.routers.toollist.tls.certresolver=myresolver"
|
|
- "traefik.http.routers.toollist.middlewares=toollist-auth"
|
|
- "traefik.http.middlewares.toollist-auth.basicauth.users=user:$$2y$$12$$somehashedpasswordhere"
|
|
- "traefik.http.services.toollist.loadbalancer.server.port=3000"
|
|
|
|
networks:
|
|
web:
|
|
external: true
|