diff --git a/.gitignore b/.gitignore index 4f509e5..574a892 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.env \ No newline at end of file +*.env +.env \ No newline at end of file diff --git a/infrastructure/docker-compose.yml b/infrastructure/docker-compose.yml new file mode 100644 index 0000000..1fc6319 --- /dev/null +++ b/infrastructure/docker-compose.yml @@ -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