mirror of
https://github.com/GHOSCHT/franz.git
synced 2024-11-09 23:41:58 +01:00
Init traefik
This commit is contained in:
parent
f055c5fe25
commit
ec879197f4
2 changed files with 68 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.env
|
||||
.env
|
66
infrastructure/docker-compose.yml
Normal file
66
infrastructure/docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue