dockerize

This commit is contained in:
2024-07-23 10:12:37 -03:00
parent 1d106d9c52
commit e75b21a17d
3 changed files with 47 additions and 0 deletions

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3.8'
services:
traefik-frontend:
container_name: traefik-frontend
build:
context: .
dockerfile: Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
FLASK_ENV: development
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.home.rule=Host(`home.gederico.dynu.net`)"
- "traefik.http.routers.home.tls.certresolver=leresolver"
- "traefik.http.routers.home.entrypoints=websecure"
- "traefik.http.routers.home.middlewares=chain-authelia@file"
- "traefik.http.services.home.loadbalancer.server.port=5000"
- "traefik.http.services.home.loadbalancer.server.scheme=http"
networks:
web:
external: true