Marius Alwan Meyer
115ab7e840
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 33s
46 lines
1.3 KiB
Django/Jinja
46 lines
1.3 KiB
Django/Jinja
|
|
# ANSIBLE-MANAGED
|
|
#
|
|
# -- Diese Datei wird via Ansible verwaltet und automatisch überschrieben!
|
|
# https://azubi-gitea.int.sernet.de/mmeyer/ansible-role-gitea/src/branch/main/templates/docker-compose.yaml.j2
|
|
|
|
version: "3.8"
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:{{ gitea_vars['version'] }}-rootless
|
|
restart: unless-stopped
|
|
volumes:
|
|
- {{ gitea_vars.base_path }}/data:/var/lib/gitea
|
|
- {{ gitea_vars.base_path }}/config:/etc/gitea
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
- "22:2222"
|
|
user: "{{ git_user.uid }}:{{ git_user.group }}"
|
|
env_file: ./environment.env
|
|
networks:
|
|
- gitea
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: "{{ gitea_vars['database']['db_type'] }}:{{ gitea_vars['database']['docker_image_tag'] }}"
|
|
restart: unless-stopped
|
|
environment:
|
|
- "MYSQL_DATABASE={{ gitea_vars.database.name }}"
|
|
- "MYSQL_USER={{ gitea_vars.database.user }}"
|
|
- "MYSQL_PASSWORD={{ vault[inventory_hostname]['gitea']['database']['passwd'] }}"
|
|
- "MYSQL_ROOT_PASSWORD={{ vault[inventory_hostname]['gitea']['database']['root_passwd'] }}"
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- {{ gitea_vars.base_path }}/mysql:/var/lib/mysql
|
|
cap_add:
|
|
- SYS_NICE
|