Updates
This commit is contained in:
1 parent
a2e773b3ab
commit
5713d3d410
16 files changed
+179
-274
No files matched your search
+10
-2
@@ -12,6 +12,7 @@
|
||||
docker_image:
|
||||
name: "{{ container_image }}"
|
||||
source: pull
|
||||
force_source: yes
|
||||
|
||||
- name: Copy dockerfile
|
||||
synchronize: src=web dest=/tmp
|
||||
@@ -25,6 +26,7 @@
|
||||
pull: yes
|
||||
state: present
|
||||
source: build
|
||||
force_source: yes
|
||||
|
||||
- name: Create Nextcloud container
|
||||
docker_container:
|
||||
@@ -42,7 +44,7 @@
|
||||
- "postgres:db"
|
||||
# - "redis:redis"
|
||||
published_ports:
|
||||
- "9000:9000"
|
||||
- "127.0.0.1:9000:9000"
|
||||
volumes:
|
||||
- /var/lib/nextcloud:/var/www/html
|
||||
|
||||
@@ -55,10 +57,16 @@
|
||||
links:
|
||||
- "cloud:app"
|
||||
published_ports:
|
||||
- "9080:80"
|
||||
- "127.0.0.1:9080:80"
|
||||
volumes:
|
||||
- /var/lib/nextcloud:/var/www/html:ro
|
||||
|
||||
- name: Add cron job
|
||||
cron:
|
||||
name: Nextcloud cron
|
||||
minute: "*/5"
|
||||
job: "docker exec -u www-data {{ container_name }} php cron.php"
|
||||
|
||||
- name: Check if Nginx conf file exists
|
||||
stat: path="/etc/nginx/sites-available/{{ http_conf }}"
|
||||
register: status
|
||||
|
||||
Reference in new issue
Block a user