Docker/Finance/Wallos/docker-compose-traefik.yml
2024-04-21 14:42:52 +02:00

33 lines
1.0 KiB
YAML

#### networks
networks:
docker-traefik_front_network:
external: true
#### services
services:
wallos:
container_name: wallos
image: bellamy/wallos:latest
environment:
TZ: 'Europe/Paris'
# Volumes store your data between container upgrades
volumes:
- './db:/var/www/html/db'
- './logos:/var/www/html/images/uploads/logos'
restart: unless-stopped
networks:
- docker-traefik_front_network
labels:
- "traefik.enable=true"
- "traefik.docker.network=docker-traefik_front_network"
# HTTP
- "traefik.http.routers.wallos-http.rule=Host(`wallos.tips-of-mine.local`)"
- "traefik.http.routers.wallos-http.entrypoints=http"
# HTTPS
- "traefik.http.routers.wallos-https.rule=Host(`wallos.tips-of-mine.local`)"
- "traefik.http.routers.wallos-https.entrypoints=https"
- "traefik.http.routers.wallos-https.service=wallos-service"
- "traefik.http.routers.wallos-https.tls=true"
# Middleware
# Service
- "traefik.http.services.wallos-service.loadbalancer.server.port=80"