Use host network for nextcloud and registry containers.

This commit is contained in:
yohan 2024-11-03 19:34:52 +01:00
parent 33ef679bb5
commit fc5929120d
2 changed files with 2 additions and 20 deletions

View File

@ -103,24 +103,13 @@
failed_when: false
become: true
- name: Create podman networks
containers.podman.podman_network:
name: "{{ item }}"
become: true
with_items:
- reverse-proxy
- mailnet
- name: Create nextcloud container
containers.podman.podman_container:
name: nextcloud
image: "{{ private_registry_domain }}/nextcloud:19.0.13-apache-full"
state: present
network:
- reverse-proxy
- mysqlnet
- mailnet
dns_search: "{{ SHORTNAME }}-sub.{{ DOMAIN }}"
- host
volume:
- /mnt/volumes/nextcloud/data:/var/www/html:Z
- /usr/local/docker-mounted-files/docker-nextcloud-stack/supervisord.conf:/supervisord.conf:z

View File

@ -95,20 +95,13 @@
changed_when: duplicity_result.rc is defined and duplicity_result.rc == 0
when: not registry_restored_flag.stat.exists
- name: Create podman networks
containers.podman.podman_network:
name: "{{ item }}"
become: true
with_items:
- reverse-proxy
- name: Create registry container
containers.podman.podman_container:
name: registry
image: docker.io/registry:2.8.3
state: present
network:
- reverse-proxy
- host
expose:
- "5000/tcp"
volume: