diff --git a/docker-containers/gitea/docker-compose.yml b/docker-containers/gitea/docker-compose.yml index 4826812..2aa6448 100644 --- a/docker-containers/gitea/docker-compose.yml +++ b/docker-containers/gitea/docker-compose.yml @@ -30,12 +30,26 @@ services: - GITEA__openid__ENABLE_OPENID_SIGNUP=true - GITEA__service__DISABLE_REGISTRATION=false - GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=true + - GITEA__service__REGISTER_EMAIL_CONFIRM=false + - GITEA__service__ENABLE_CAPTCHA=false + - GITEA__oauth2_client__ENABLE_AUTO_REGISTRATION=true - VIRTUAL_HOST=git.cttue.de - VIRTUAL_PORT=3000 - LETSENCRYPT_HOST=git.cttue.de restart: always + labels: + - traefik.enable=true + - traefik.docker.network=traefik + - traefik.http.routers.git.entrypoints=web-secure + - traefik.http.routers.git.service=git + - traefik.http.routers.git.rule=Host(`git.cttue.de`) + - traefik.http.routers.git.tls=true + - traefik.http.routers.git.tls.certResolver=default + - traefik.http.routers.git.tls.domains[0]=cttue.de + - traefik.http.routers.git.tls.domains[0].sans=git.cttue.de + - traefik.http.services.git.loadbalancer.server.port=3000 networks: - - cttue_web_services + - traefik - gitea ports: - 127.0.0.1:2222:22 @@ -47,6 +61,6 @@ services: networks: - cttue_web_services: - external: true gitea: + traefik: + external: true \ No newline at end of file