43 lines
1.1 KiB
Plaintext

---
- hosts: localhost
vars:
password: rolaids
tasks:
- name: Create nextcloud volume 1/3
docker_volume:
name: nextcloud
- name: Create nextcloud volume 2/3
docker_volume:
name: nextcloud_apps
- name: Create nextcloud volume 3/3
docker_volume:
name: nextcloud_config
- name: Create network interface
command: /usr/bin/ip addr add 192.168.1.63/24 dev enp2s0
ignore_errors: True
- name: Start nextcloud
docker_container:
name: vault
hostname: vault
recreate: yes
image: nextcloud:27.0.0
ports:
- "192.168.1.63:81:80"
volumes:
- nextcloud:/var/www/html
- nextcloud_apps:/var/www/html/custom_apps
- nextcloud_config:/var/www/html/config
- /home/nextcloud:/var/www/html/data
env:
NEXTCLOUD_TRUSTED_DOMAINS=nc.murkfall.net
NEXTCLOUD_ADMIN_USER=murkfall
NEXTCLOUD_ADMIN_PASSWORD={{ password }}
PHP_MEMORY_LIMIT=5939M
memory: 16G
container_default_behavior: compatibility
restart_policy: unless-stopped