2024-01-13 20:23:22 +00:00
|
|
|
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"
|
2024-07-26 21:40:03 +00:00
|
|
|
- "traefik.http.routers.gitea.rule=Host(`gitea.stevedudenhoeffer.com`) || Host(`gitea.dudenhoeffer.casa`)"
|
2024-01-13 20:23:22 +00:00
|
|
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
|
|
|
|
|
|
|
|
|
|
|
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
|