mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-24 04:21:14 +00:00
24 lines
639 B
YAML
24 lines
639 B
YAML
version: "3"
|
|
|
|
services:
|
|
gitea:
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
hostname: gitea
|
|
ports:
|
|
- 3000:3000 #webgui
|
|
- 2222:22 #ssh
|
|
image: gitea/gitea:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/docker-volumes/gitea/data:/data
|
|
#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
|