commit 3f01c8ad0f70f5f20821c8e443a6f70d83fb807d Author: founder Date: Fri Jun 5 02:30:56 2026 +0200 Initial infrastructure: Caddy + Gitea + Uptime Kuma diff --git a/caddyfile b/caddyfile new file mode 100644 index 0000000..9946d49 --- /dev/null +++ b/caddyfile @@ -0,0 +1,12 @@ +{ + auto_https off +} + +:80 { + handle_path /status/* { + reverse_proxy uptime-kuma:3001 + } + handle { + reverse_proxy gitea:3000 + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1b497d7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,59 @@ +version: "3.8" + +services: + caddy: + image: caddy:2-alpine + container_name: caddy + restart: unless-stopped + ports: + - "80:80" + - "443:443" + volumes: + - caddy_data:/data + - caddy_config:/config + - ./Caddyfile:/etc/caddy/Caddyfile:ro + networks: + - proxy + + gitea: + image: gitea/gitea:1 + container_name: gitea + restart: unless-stopped + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__server__DOMAIN=git.local + - GITEA__server__ROOT_URL=https://git.local + - GITEA__server__HTTP_PORT=3000 + - GITEA__server__SSH_DOMAIN=82.165.176.5 + - GITEA__database__DB_TYPE=sqlite3 + volumes: + - gitea_data:/var/lib/gitea + - gitea_config:/etc/gitea + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + networks: + - proxy + - internal + + uptime-kuma: + image: louislam/uptime-kuma:1 + container_name: uptime-kuma + restart: unless-stopped + volumes: + - uptime_kuma_data:/app/data + networks: + - proxy + +volumes: + caddy_data: + caddy_config: + gitea_data: + gitea_config: + uptime_kuma_data: + +networks: + proxy: + driver: bridge + internal: + driver: bridge