homeserver-iac/roles/containers/templates/docker-compose.yml.j2
dogeystamp 0288cea768
roles/containers: use systemd instead of docker module
arch doesn't package python-docker-compose so just docker compose up via
systemd instead of ansible
2023-08-27 17:39:08 -04:00

29 lines
462 B
Django/Jinja

# vim: ft=yaml
---
version: "3"
networks:
gitea:
external: false
services:
{% if "gitea" in group_names %}
gitea:
container_name: gitea
image: gitea/gitea:latest
environment:
- USER=gitea
restart: unless-stopped
networks:
- gitea
volumes:
- {{ dataroot }}/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
{% endif %}