20 lines
646 B
YAML
20 lines
646 B
YAML
|
version: '3.3'
|
||
|
services:
|
||
|
gitea:
|
||
|
container_name: gitea
|
||
|
restart: unless-stopped
|
||
|
privileged: true
|
||
|
ports:
|
||
|
# - '33022:22'
|
||
|
- '3000:3000'
|
||
|
volumes:
|
||
|
- './:/data'
|
||
|
- '/etc/localtime:/etc/localtime:ro'
|
||
|
image: 'gitea/gitea:latest'
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.http.routers.gitea.rule=Host(`gitea.com`)"
|
||
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
||
|
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
|
||
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|