services: gitea: image: gitea/gitea:1.25.5-rootless container_name: gitea restart: unless-stopped depends_on: - alloy env_file: .env volumes: - ${DATA_ROOT}/gitea/data:/var/lib/gitea - ${DATA_ROOT}/gitea/config:/etc/gitea ports: - "2222:2222" networks: - proxy logging: driver: json-file options: max-size: "10m" max-file: "3" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"] interval: 30s timeout: 10s retries: 3 networks: proxy: external: true