Update docker-compose.yml

Added traefik labels and network.  Also added internal booklore network for internal communications.
This commit is contained in:
2026-05-28 17:29:38 -05:00
parent 1cf63ec2fb
commit 895f107499
+22 -1
View File
@@ -5,6 +5,19 @@ services:
# Or the GHCR image: # Or the GHCR image:
# image: ghcr.io/booklore-app/booklore:latest # image: ghcr.io/booklore-app/booklore:latest
container_name: booklore container_name: booklore
networks:
- traefik-public
- booklore
labels:
- "traefik.enable=true"
- "traefik.http.routers.books.rule=Host(`vault.speerfam.net`)"
- "traefik.http.routers.books.entrypoints=websecure"
- "traefik.http.routers.books.tls.certresolver=myresolver"
# Pulling the security rules dynamically from our file provider setup
- "traefik.http.routers.books.middlewares=geoblock-policy@file,crowdsec-policy@file,secure-headers@file"
- "traefik.http.services.books.loadbalancer.server.port=6060"
environment: environment:
- USER_ID=0 - USER_ID=0
- GROUP_ID=0 - GROUP_ID=0
@@ -29,6 +42,8 @@ services:
mariadb: mariadb:
image: lscr.io/linuxserver/mariadb:11.4.5 image: lscr.io/linuxserver/mariadb:11.4.5
container_name: mariadb container_name: mariadb
networks:
- booklore
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@@ -44,4 +59,10 @@ services:
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ] test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
networks:
traefik-public:
external: true
booklore:
external: false