Update docker-compose.yml
Added traefik labels and network. Also added internal booklore network for internal communications.
This commit is contained in:
@@ -5,6 +5,19 @@ services:
|
||||
# Or the GHCR image:
|
||||
# image: ghcr.io/booklore-app/booklore:latest
|
||||
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:
|
||||
- USER_ID=0
|
||||
- GROUP_ID=0
|
||||
@@ -29,6 +42,8 @@ services:
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:11.4.5
|
||||
container_name: mariadb
|
||||
networks:
|
||||
- booklore
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@@ -45,3 +60,9 @@ services:
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
booklore:
|
||||
external: false
|
||||
Reference in New Issue
Block a user