mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 08:44:28 +01:00
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
# Gitea
|
|
gitea:
|
|
image: gitea/gitea:latest-rootless
|
|
container_name: gitea
|
|
profiles:
|
|
- gitea
|
|
restart: on-failure
|
|
depends_on:
|
|
- caddy
|
|
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
|
|
depends_on:
|
|
- gitea
|
|
restart: on-failure
|
|
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
|
|
|
|
volumes:
|
|
gitea_data:
|
|
name: gitea_data
|
|
gitea_config:
|
|
name: gitea_config
|
|
gitea_db:
|
|
name: gitea_db
|