roles/containers: put gitea on its own network

This commit is contained in:
dogeystamp 2023-09-03 22:05:22 -04:00
parent 3b6ec76ce8
commit d8db896ac2
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 7 additions and 0 deletions

View File

@ -41,6 +41,7 @@
template:
src: "docker-compose.yml.j2"
dest: "{{ docker_compose_dir }}/docker-compose.yml"
lstrip_blocks: true
register: generateComp
- name: Create systemd unit file

View File

@ -3,6 +3,10 @@
version: "3"
networks:
gitea:
driver: bridge
services:
{% if "gitea" in group_names %}
gitea:
@ -22,5 +26,7 @@ services:
- {{ dataroot }}/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- gitea
{% endif %}