Nextcloud broken into roles.

Updated the web nginx.conf and the source is not given in the readme.
Restricted to gondor.
Webserver image and container names are now picked from the vars file.
This commit is contained in:
tanshu committed 2024-01-23 22:15:11 +05:30
1 parent e26809cec9
commit 008ac0d198
9 files changed
+150 -149

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
---
# Tasks for Nextcloud webserver role
- name: Copy dockerfile
synchronize: src=web dest=/tmp
- name: Build nginx webserver image
docker_image:
name: "{{ web_container_image }}"
build:
path: /tmp/web/
dockerfile: /tmp/web/Dockerfile
pull: yes
state: present
source: build
force_source: yes
- name: Create webserver container
docker_container:
name: "{{ web_container_name }}"
image: "{{ web_container_image }}"
state: started
restart_policy: "unless-stopped"
links:
- "{{ container_name }}:app"
published_ports:
- "127.0.0.1:9080:80"
volumes:
- "/var/lib/{{ host_directory }}:/var/www/html:ro"