homelab/druid/config/gitea/docker-compose.yml

61 lines
1.5 KiB
YAML
Raw Normal View History

2024-02-15 02:09:59 -08:00
version: '3.9'
2023-11-23 13:29:21 -08:00
services:
gitea:
image: gitea/gitea:1.21.0
container_name: gitea_gitea
env_file:
2024-02-12 21:27:33 -08:00
- path: ./gitea.env
required: true
2023-11-23 13:29:21 -08:00
restart: always
networks:
- web
- gitea
volumes:
- $DOCKER_DATA/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "2225:22"
labels:
- traefik.http.routers.gitea.rule=Host(`gitea.jafner.tools`)
- traefik.http.routers.gitea.tls.certresolver=lets-encrypt
- traefik.http.routers.gitea.tls.options=tls12@file
- traefik.http.routers.gitea.middlewares=securityheaders@file
- traefik.http.routers.gitea.service=gitea
- traefik.http.services.gitea.loadbalancer.server.port=3000
postgres:
image: postgres:13
container_name: gitea_postgres
networks:
- gitea
env_file:
2024-02-12 21:27:33 -08:00
- path: ./postgres_secrets.env
required: false
2023-11-23 13:29:21 -08:00
volumes:
- postgres_data:/var/lib/postgresql/data
2024-02-12 23:24:14 -08:00
2024-02-12 23:27:14 -08:00
runner-ubuntu:
2024-02-12 23:24:14 -08:00
image: gitea/act_runner:latest
container_name: gitea_runner-ubuntu
2024-02-12 21:27:33 -08:00
depends_on:
- gitea
2024-02-12 14:29:48 -08:00
env_file:
2024-02-12 23:26:37 -08:00
- path: ./runner-ubuntu.env
2024-02-12 21:27:33 -08:00
required: true
- path: ./runner_secrets.env
required: false
2024-02-12 14:29:48 -08:00
networks:
- gitea
volumes:
2024-02-12 23:34:48 -08:00
- ./runner_ubuntu_config.yaml:/config.yaml
2024-02-12 23:27:53 -08:00
- $DOCKER_DATA/runner-ubuntu:/data
2024-02-12 14:29:48 -08:00
- /var/run/docker.sock:/var/run/docker.sock
2023-11-23 13:29:21 -08:00
networks:
web:
external: true
gitea:
volumes:
postgres_data: