roles/containers: put gitea on its own network
This commit is contained in:
parent
3b6ec76ce8
commit
d8db896ac2
@ -41,6 +41,7 @@
|
|||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{ docker_compose_dir }}/docker-compose.yml"
|
dest: "{{ docker_compose_dir }}/docker-compose.yml"
|
||||||
|
lstrip_blocks: true
|
||||||
register: generateComp
|
register: generateComp
|
||||||
|
|
||||||
- name: Create systemd unit file
|
- name: Create systemd unit file
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
services:
|
services:
|
||||||
{% if "gitea" in group_names %}
|
{% if "gitea" in group_names %}
|
||||||
gitea:
|
gitea:
|
||||||
@ -22,5 +26,7 @@ services:
|
|||||||
- {{ dataroot }}/gitea:/data
|
- {{ dataroot }}/gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user