ansible-role-gitea/templates/docker-compose.yaml.j2

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-03-09 11:28:17 +01:00
# 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: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
2023-03-03 12:34:00 +01:00
- "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: mysql:8
restart: always
environment:
- "MYSQL_DATABASE={{ gitea_vars.database.name }}"
- "MYSQL_USER={{ gitea_vars.database.user }}"
2023-03-11 23:28:36 +01:00
- "MYSQL_PASSWORD={{ vault[inventory_hostname]['gitea']['database']['passwd'] }}"
- "MYSQL_ROOT_PASSWORD={{ vault[inventory_hostname]['gitea']['database']['root_passwd'] }}"
networks:
- gitea
volumes:
- ./mysql:/var/lib/mysql