From 62e28830051866a81575a22f21c4fac7e56043f7 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 27 Jul 2024 04:47:56 +0000 Subject: [PATCH] add gitea to pi --- pi/gitea/docker-compose.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pi/gitea/docker-compose.yml diff --git a/pi/gitea/docker-compose.yml b/pi/gitea/docker-compose.yml new file mode 100644 index 0000000..c49410e --- /dev/null +++ b/pi/gitea/docker-compose.yml @@ -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 \ No newline at end of file