Init traefik

This commit is contained in:
GHOSCHT 2022-08-27 18:48:13 +02:00
parent f055c5fe25
commit ec879197f4
No known key found for this signature in database
GPG key ID: A35BD466B8871994
2 changed files with 68 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.env
.env

View file

@ -0,0 +1,66 @@
version: '3'
services:
traefik:
image: traefik
container_name: traefik
restart: always
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- traefik_data:/etc/traefik
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
traefik_net:
labels:
- traefik.enable=true
- traefik.http.routers.dashboard.rule=Host(`traefik.franz.local`)
- traefik.http.routers.dashboard.entrypoints=web
- traefik.http.services.dashboard.loadbalancer.server.port=8080
kuma:
container_name: kuma
image: "louislam/uptime-kuma"
volumes:
- kuma_data:/app/data
restart: always
networks:
traefik_net:
dns:
- 1.1.1.1
labels:
- traefik.enable=true
- traefik.http.routers.kuma.entrypoints=web
- traefik.http.routers.kuma.rule=Host(`kuma.franz.local`)
flame:
image: pawelmalak/flame
container_name: flame
volumes:
- flame_data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- password.env
restart: always
networks:
traefik_net:
ipv4_address: 172.26.0.2
labels:
- traefik.enable=true
- traefik.http.routers.flame.entrypoints=web
- traefik.http.routers.flame.rule=Host(`franz.local`)
dns:
- 1.1.1.1
networks:
traefik_net:
name: traefik-net
driver: bridge
volumes:
traefik_data:
name: traefik_data
kuma_data:
name: kuma_data
flame_data:
name: flame_data