roles/containers: put gitea on its own network
This commit is contained in:
parent
3b6ec76ce8
commit
d8db896ac2
@ -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
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user