2023-10-15 21:06:26 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2023-10-15 21:49:22 +02:00
|
|
|
- GITEA__service__DISABLE_REGISTRATION=true
|
|
|
|
- GITEA__actions__ENABLED=true
|
|
|
|
- GITEA__actions__DEFAULT_ACTIONS_URL=self
|
|
|
|
- GITEA__packages__ENABLED=true
|
2023-10-15 21:06:26 +02:00
|
|
|
container_name: gitea
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- {{ server.work_dir }}/gitea/data/:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- interne
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=proxy
|
|
|
|
# HTTP Reverse proxy Gitea
|
|
|
|
- traefik.http.routers.gitea-secure.entrypoints=https
|
|
|
|
- traefik.http.routers.gitea-secure.rule=Host(`gitea.{{ server.domain }}`)
|
|
|
|
- traefik.http.routers.gitea-secure.tls=true
|
|
|
|
- traefik.http.routers.gitea-secure.tls.certresolver=sslResolver
|
|
|
|
- traefik.http.routers.gitea-secure.service=gitea
|
|
|
|
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
2023-11-20 21:37:15 +01:00
|
|
|
# TCP SSH Reverse proxy Gitea
|
2023-10-15 21:06:26 +02:00
|
|
|
- traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)
|
|
|
|
- traefik.tcp.routers.gitea-ssh.entrypoints=ssh
|
|
|
|
- traefik.tcp.routers.gitea-ssh.service=gitea-ssh
|
|
|
|
- traefik.tcp.services.gitea-ssh.loadbalancer.server.port=22
|
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
|
|
|
|
mode: non-blocking
|
|
|
|
|
2023-11-20 21:37:15 +01:00
|
|
|
runner:
|
2023-11-21 20:18:16 +01:00
|
|
|
image: gitea/act_runner
|
2023-11-20 21:37:15 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- gitea
|
|
|
|
volumes:
|
|
|
|
- {{ server.work_dir }}/gitea/runner/:/data
|
2023-11-21 20:18:16 +01:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2023-11-20 21:37:15 +01:00
|
|
|
environment:
|
|
|
|
- GITEA_INSTANCE_URL=https://gitea.{{ server.domain }}
|
|
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea.runner_registration_token }}
|
|
|
|
|
2023-10-15 21:06:26 +02:00
|
|
|
networks:
|
|
|
|
interne:
|
|
|
|
metrics:
|
|
|
|
external: true
|
|
|
|
proxy:
|
|
|
|
external: true
|