good docker compose
Build & Push Docker Image / Build and push (push) Successful in 7m8s

This commit is contained in:
Oliver Walter
2026-06-06 23:07:47 +02:00
parent af6b3ac1af
commit 64e2f4054b
+18 -8
View File
@@ -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