homelab/louvainlinux/docker-compose.yaml

104 lines
3.0 KiB
YAML
Raw Normal View History

2022-12-13 01:02:23 +01:00
version: "3.2"
2022-12-13 00:32:24 +01:00
services:
traefik:
image: traefik:v2.9
container_name: traefik
command:
- "--api.insecure=true"
- "--api.debug=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=external"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entryPoint.permanent=true"
- "--certificatesresolvers.http.acme.httpchallenge=true"
- "--certificatesresolvers.http.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.http.acme.email=acme@bhasher.com"
- "--certificatesresolvers.http.acme.storage=acme.json"
2022-12-13 01:02:23 +01:00
# - "--log.level=DEBUG"
2022-12-13 00:32:24 +01:00
environment:
- TZ=Europe/Paris
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- type: bind
source: /home/pi/docker/storage/traefik/acme.json
target: /acme.json
networks:
- external
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
restart: always
labels:
2022-12-13 01:02:23 +01:00
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`portainer.lln.bhasher.com`)"
- "traefik.http.routers.portainer.entrypoints=websecure"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "traefik.http.routers.portainer.tls=true"
- "traefik.http.routers.portainer.tls.certresolver=http"
environment:
- TZ=Europe/Paris
2022-12-13 00:32:24 +01:00
volumes:
2022-12-13 01:02:23 +01:00
- /var/run/docker.sock:/var/run/docker.sock
- /home/pi/docker/storage/portainer:/data
2022-12-13 00:32:24 +01:00
networks:
2022-12-13 01:02:23 +01:00
- external
2022-12-13 00:32:24 +01:00
baikal:
container_name: baikal
image: ckulka/baikal:nginx
restart: on-failure
2022-12-13 01:02:23 +01:00
environment:
- TZ=Europe/Paris
2022-12-13 00:32:24 +01:00
volumes:
- /home/pi/docker/storage/baikal/config:/var/www/baikal/config
- /home/pi/docker/storage/baikal/data:/var/www/baikal/Specific
labels:
- "traefik.enable=true"
- "traefik.http.routers.baikal.rule=Host(`baikal.bhasher.com`)"
- "traefik.http.services.baikal.loadbalancer.server.port=80"
- "traefik.http.routers.baikal.tls=true"
- "traefik.http.routers.baikal.tls.certresolver=http"
- "traefik.http.routers.baikal.entrypoints=websecure"
networks:
- external
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
- SERVERURL=wireguard.louvainlinux.org
- SERVERPORT=51855
2023-02-10 10:47:22 +01:00
- PEERS=7
2022-12-13 00:32:24 +01:00
- PEERDNS=1.1.1.1
- INTERNAL_SUBNET=10.13.13.0
- ALLOWEDIPS=0.0.0.0/0
- LOG_CONFS=true
volumes:
- /home/pi/docker/storage/wireguard:/config:rw
- /lib/modules:/lib/modules:ro
ports:
- 51855:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: always
networks:
external:
2022-12-13 01:02:23 +01:00