This commit is contained in:
+18
-8
@@ -1,18 +1,28 @@
|
|||||||
services:
|
services:
|
||||||
toollist:
|
toollist:
|
||||||
build:
|
image: git.revwal.de/oliver/toollist:latest
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
volumes:
|
volumes:
|
||||||
# Persist the TOML data file across container restarts/upgrades.
|
# Persist the TOML data file across container restarts/upgrades.
|
||||||
# On first run the seed data baked into the image is used;
|
# On first run the seed data baked into the image is used;
|
||||||
# subsequent writes go straight to this named volume.
|
# subsequent writes go straight to this named volume.
|
||||||
- toollist-data:/app/data
|
- ./data:/app/data
|
||||||
environment:
|
environment:
|
||||||
LEPTOS_ENV: PROD
|
LEPTOS_ENV: PROD
|
||||||
|
LEPTOS_SITE_ADDR: "0.0.0.0:3000"
|
||||||
restart: unless-stopped
|
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"
|
||||||
|
|
||||||
volumes:
|
networks:
|
||||||
toollist-data:
|
web:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user