diff --git a/nuc/gitea/docker-compose.yml b/nuc/gitea/docker-compose.yml index 3724be2..3351915 100755 --- a/nuc/gitea/docker-compose.yml +++ b/nuc/gitea/docker-compose.yml @@ -1,41 +1,41 @@ -version: "3" - -services: - gitea: - image: gitea/gitea:latest - container_name: gitea - - hostname: gitea - - environment: - - USER_UID=${GROUP_ID} - - USER_GID=${USER_ID} - - DOMAIN_ROOT=${DOMAIN_ROOT} - - "SSH_PORT=${SSH_PORT:-222}" - - restart: always - - labels: - - "traefik.enable=true" - - "traefik.http.routers.gitea.rule=Host(`gitea.${DOMAIN_ROOT}`)" - - "traefik.http.services.gitea.loadbalancer.server.port=3000" - - 'traefik.http.routers.gitea.middlewares=authelia@docker' - - - volumes: - - gitea_data:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro - ports: - - "${SSH_PORT}:222" - - networks: - - web - -networks: - web: - external: true - -volumes: - gitea_data: - external: true +version: "3" + +services: + gitea: + image: gitea/gitea:latest + container_name: gitea + + hostname: gitea + + environment: + - USER_UID=${USER_ID} + - USER_GID=${GROUP_ID} + - DOMAIN_ROOT=${DOMAIN_ROOT} + - "SSH_PORT=${SSH_PORT:-222}" + + restart: always + + labels: + - "traefik.enable=true" + - "traefik.http.routers.gitea.rule=Host(`gitea.${DOMAIN_ROOT}`)" + - "traefik.http.services.gitea.loadbalancer.server.port=3000" + - 'traefik.http.routers.gitea.middlewares=authelia@docker' + + + volumes: + - gitea_data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "${SSH_PORT}:222" + + networks: + - web + +networks: + web: + external: true + +volumes: + gitea_data: + external: true