add traefik config to gitea container

main
Pascal 2 weeks ago
parent 97b77b5d5f
commit 1d793d1287
  1. 20
      docker-containers/gitea/docker-compose.yml

@ -30,12 +30,26 @@ services:
- GITEA__openid__ENABLE_OPENID_SIGNUP=true - GITEA__openid__ENABLE_OPENID_SIGNUP=true
- GITEA__service__DISABLE_REGISTRATION=false - GITEA__service__DISABLE_REGISTRATION=false
- GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=true - 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_HOST=git.cttue.de
- VIRTUAL_PORT=3000 - VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=git.cttue.de - LETSENCRYPT_HOST=git.cttue.de
restart: always 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: networks:
- cttue_web_services - traefik
- gitea - gitea
ports: ports:
- 127.0.0.1:2222:22 - 127.0.0.1:2222:22
@ -47,6 +61,6 @@ services:
networks: networks:
cttue_web_services:
external: true
gitea: gitea:
traefik:
external: true
Loading…
Cancel
Save