1
0
Fork 0
myserver-configuration/roles/gitea/templates/docker-compose.yml

60 lines
1.9 KiB
YAML
Raw Normal View History

services:
2024-10-27 16:42:04 +01:00
web:
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
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
2024-10-27 16:42:04 +01:00
- traefik.http.routers.git-secure.entrypoints=https
- traefik.http.routers.git-secure.rule=Host(`gitea.{{ server.domain }}`) || Host(`git.{{ server.domain }}`)
- traefik.http.routers.git-secure.tls=true
- traefik.http.routers.git-secure.tls.certresolver=sslResolver
- traefik.http.routers.git-secure.service=git
- traefik.http.services.git.loadbalancer.server.port=3000
2023-11-20 21:37:15 +01:00
# TCP SSH Reverse proxy Gitea
2024-10-27 16:42:04 +01:00
- traefik.tcp.routers.git-ssh.rule=HostSNI(`*`)
- traefik.tcp.routers.git-ssh.entrypoints=ssh
- traefik.tcp.routers.git-ssh.service=git-ssh
- traefik.tcp.services.git-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:
2024-10-27 16:42:04 +01:00
- web
2023-11-20 21:37:15 +01:00
volumes:
2023-11-21 23:00:10 +01:00
- ./config.yml:/config.yml
2023-11-20 21:37:15 +01:00
- {{ 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:
2023-11-21 23:00:10 +01:00
- CONFIG_FILE=/config.yml
2023-11-20 21:37:15 +01:00
- GITEA_INSTANCE_URL=https://gitea.{{ server.domain }}
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea.runner_registration_token }}
networks:
interne:
metrics:
external: true
proxy:
2024-07-14 22:16:35 +02:00
external: true