version: "2" services: gitea: container_name: gitea image: gitea/gitea:1 environment: - TZ=Europe/Helsinki - USER_UID=1000 - USER_GID=1000 - DB_TYPE=mysql - DB_HOST=mariadb:3306 - DB_NAME=gitea - DB_USER=gitea - DB_PASSWD=${MYSQL_PASS} restart: unless-stopped networks: - mariadb - proxy ports: - "3000:3000" - "222:22" volumes: - /docker/gitea:/data - /etc/localtime:/etc/localtime:ro labels: - "traefik.enable=true" - "traefik.http.routers.gitea-redirect.entrypoints=http" - "traefik.http.routers.gitea-redirect.rule=Host(`git.reekynet.com`)" - "traefik.http.middlewares.http2https.redirectscheme.scheme=https" - "traefik.http.routers.gitea-redirect.middlewares=http2https" - "traefik.http.routers.gitea.entrypoints=https" - "traefik.http.routers.gitea.rule=Host(`git.reekynet.com`)" - "traefik.http.routers.gitea.tls=true" - "traefik.http.routers.gitea.tls.certresolver=http" - "traefik.http.routers.gitea.service=gitea" - "traefik.docker.network=proxy" - "traefik.http.services.gitea.loadbalancer.server.port=3000" networks: mariadb: external: true proxy: external: true