2024-05-05 11:05:51 +02:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
|
|
|
# Gitea
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest-rootless
|
|
|
|
container_name: gitea
|
|
|
|
profiles:
|
|
|
|
- gitea
|
2024-05-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 11:05:51 +02:00
|
|
|
depends_on:
|
2024-05-12 14:48:00 +02:00
|
|
|
- database_gitea
|
2024-05-05 11:05:51 +02:00
|
|
|
- caddy
|
2024-05-12 16:06:25 +02:00
|
|
|
ports:
|
|
|
|
- "2222:2222"
|
2024-05-05 11:05:51 +02:00
|
|
|
env_file:
|
|
|
|
- env/gitea.env
|
|
|
|
volumes:
|
|
|
|
- gitea_data:/var/lib/gitea
|
|
|
|
- gitea_config:/etc/gitea
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
|
|
|
# Database gitea
|
|
|
|
database_gitea:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: database_gitea
|
|
|
|
profiles:
|
|
|
|
- database
|
|
|
|
- gitea
|
2024-05-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 11:05:51 +02:00
|
|
|
volumes:
|
|
|
|
- gitea_db:/var/lib/mysql:rw
|
|
|
|
env_file:
|
|
|
|
- env/gitea_db.env
|
|
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 22:38:14 +02:00
|
|
|
|
2024-05-12 14:45:04 +02:00
|
|
|
# Gitea-runner
|
|
|
|
gitea-runner:
|
|
|
|
image: gitea/act_runner:latest
|
|
|
|
container_name: gitea-runner
|
|
|
|
profiles:
|
2024-05-12 14:48:00 +02:00
|
|
|
- gitea-runner
|
2024-05-12 14:45:04 +02:00
|
|
|
depends_on:
|
|
|
|
- gitea
|
|
|
|
restart: on-failure:5
|
|
|
|
env_file:
|
|
|
|
- env/gitea-runner.env
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
2024-05-05 22:38:14 +02:00
|
|
|
volumes:
|
|
|
|
gitea_data:
|
|
|
|
name: gitea_data
|
|
|
|
gitea_config:
|
|
|
|
name: gitea_config
|
|
|
|
gitea_db:
|
|
|
|
name: gitea_db
|