gitea¶
Below are the configuration files for this service. For details on how to deploy or customize, refer to the README above or the official documentation for the service.
Docker Compose Configuration¶
services:
gitea:
image: gitea/gitea:1.24.3
container_name: gitea
restart: always
volumes:
- ${STORAGE_PATH}/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "222:22"
networks:
- gitea
- web
env_file:
- ../.env
- .env
environment:
- USER_UID=${USER_UID}
- USER_GID=${USER_GID}
- GITEA__database__DB_TYPE=sqlite3
- GITEA__server__ROOT_URL=https://gitea.${DOMAIN}/
- USER=git
- GITEA_CUSTOM=/data/gitea
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.rule=Host(`gitea.${DOMAIN}`)"
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
networks:
gitea:
web:
external: true
Environment Variables (.env.example)¶
# gitea/.env
# Copy to .env and fill in real values. NEVER commit .env.
# Add any Gitea-specific secrets here.