2023-08-23 20:48:34 -04:00
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
|
2023-09-03 22:05:22 -04:00
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
driver: bridge
|
|
|
|
|
2023-08-23 20:48:34 -04:00
|
|
|
services:
|
|
|
|
{% if "gitea" in group_names %}
|
|
|
|
gitea:
|
|
|
|
container_name: gitea
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
environment:
|
2023-09-02 18:20:46 -04:00
|
|
|
- USER_UID={{ user_gitea.uid }}
|
|
|
|
- USER_GID={{ user_gitea.group }}
|
2023-08-27 21:59:01 -04:00
|
|
|
- GITEA__service__DISABLE_REGISTRATION=true
|
|
|
|
- GITEA__server__DOMAIN={{ gitea_domain }}
|
|
|
|
- GITEA__server__SSH_DOMAIN={{ gitea_domain }}
|
2023-09-03 19:38:29 -04:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2023-09-03 20:09:56 -04:00
|
|
|
- "2498:22"
|
2023-08-23 20:48:34 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- {{ dataroot }}/gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-09-03 22:05:22 -04:00
|
|
|
networks:
|
|
|
|
- gitea
|
2023-08-23 20:48:34 -04:00
|
|
|
|
|
|
|
{% endif %}
|
2023-09-04 15:28:03 -04:00
|
|
|
{% if "syncthing" in group_names %}
|
|
|
|
syncthing:
|
|
|
|
network_mode: host
|
|
|
|
container_name: syncthing
|
|
|
|
image: syncthing/syncthing
|
|
|
|
environment:
|
|
|
|
- PUID={{ user_syncthing.uid }}
|
|
|
|
- PGID={{ user_syncthing.group }}
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- {{ vault_path }}/:/vault
|
|
|
|
- {{ archive_path }}/:/vault_a
|
|
|
|
- {{ syncthing_conf_dir }}/:/var/syncthing/config
|
|
|
|
|
|
|
|
{% endif %}
|