2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
gitea:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: gitea/gitea:latest
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: gitea
|
2024-11-04 12:08:51 +00:00
|
|
|
restart: unless-stopped
|
2023-02-15 21:45:31 +00:00
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
hostname: gitea
|
|
|
|
ports:
|
|
|
|
- 3000:3000 #webgui
|
|
|
|
- 2222:22 #ssh
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 3000
|
|
|
|
- 22
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitea/data:/data
|
2023-02-26 03:00:27 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.gitea.rule=Host(`git.example.com`)
|
|
|
|
# - traefik.http.services.gitea.loadbalancer.server.port=3000
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# - traefik.http.routers.gitea.middlewares=local-ipwhitelist@file
|
2023-02-26 03:00:27 +00:00
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|