2022-10-28 16:56:26 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
2023-08-07 21:33:38 +00:00
|
|
|
#gitea (222)
|
2022-10-28 16:56:26 +00:00
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
container_name: gitea
|
2022-10-31 21:39:29 +00:00
|
|
|
volumes:
|
|
|
|
- ./gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-08-07 21:33:38 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2022-10-31 21:39:29 +00:00
|
|
|
ports:
|
|
|
|
- "222:22"
|
2022-10-28 16:56:26 +00:00
|
|
|
environment:
|
|
|
|
- APP_NAME="gitea"
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- USER=git
|
|
|
|
- RUN_MODE=prod
|
2023-08-08 19:23:18 +00:00
|
|
|
- DOMAIN=git.luke-else.co.uk
|
|
|
|
- SSH_DOMAIN=git.luke-else.co.uk
|
2022-10-28 16:56:26 +00:00
|
|
|
- HTTP_PORT=3000
|
2023-08-08 19:23:18 +00:00
|
|
|
- ROOT_URL=https://git.luke-else.co.uk
|
2022-10-28 16:56:26 +00:00
|
|
|
- SSH_PORT=222
|
|
|
|
- SSH_LISTEN_PORT=22
|
|
|
|
- DB_TYPE=sqlite3
|
2023-11-09 19:55:54 +00:00
|
|
|
- GITEA_service_DISABLE_REGISTRATION=true
|
2023-11-09 20:06:20 +00:00
|
|
|
- GITEA_server_LANDING_PAGE=/luke-else
|
2022-11-03 16:23:23 +00:00
|
|
|
labels:
|
|
|
|
## Expose Gitea Through Trefik ##
|
|
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
2023-08-21 19:03:13 +00:00
|
|
|
|
|
|
|
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.gitea-insecure.middlewares=redirect-web-secure"
|
|
|
|
- "traefik.http.routers.gitea-insecure.rule=Host(`git.luke-else.co.uk`)"
|
|
|
|
- "traefik.http.routers.gitea-insecure.entrypoints=web"
|
|
|
|
|
2023-08-07 21:33:38 +00:00
|
|
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
2023-08-09 21:48:07 +00:00
|
|
|
- "traefik.http.routers.gitea.rule=Host(`git.luke-else.co.uk`)"
|
2023-08-07 17:55:47 +00:00
|
|
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
2023-08-07 21:33:38 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|