add gitea to pi
This commit is contained in:
parent
d9ebd99bd9
commit
62e2883005
42
pi/gitea/docker-compose.yml
Normal file
42
pi/gitea/docker-compose.yml
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
|
||||
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"
|
||||
- "traefik.http.routers.gitea.rule=Host(`gitea.pi.dudenhoeffer.casa`)"
|
||||
- "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
|
Loading…
x
Reference in New Issue
Block a user