Compare commits
5 Commits
030965d7e6
...
b7f30cf403
Author | SHA1 | Date | |
---|---|---|---|
b7f30cf403 | |||
6feb3d4c0a | |||
92523c5fc2 | |||
64fd8d0242 | |||
adbbdcb775 |
@ -24,9 +24,9 @@
|
||||
- name: Configure local accounts
|
||||
hosts: all
|
||||
vars_files:
|
||||
- vars/accounts.yml
|
||||
- vars/secrets/passwords.yml
|
||||
- vars/sshkeys.yml
|
||||
- vars/accounts.yaml
|
||||
- vars/secrets/passwords.yaml
|
||||
- vars/sshkeys.yaml
|
||||
tasks:
|
||||
- name: Create omni group
|
||||
become: true
|
||||
|
@ -5,7 +5,7 @@
|
||||
- name: Configure system settings
|
||||
hosts: all
|
||||
vars_files:
|
||||
- vars/packages.yml
|
||||
- vars/packages.yaml
|
||||
pre_tasks:
|
||||
- import_tasks: tasks/centos-8-kernelplus.yml
|
||||
tasks:
|
||||
|
87
resources/docker-compose/nextcloud.yaml.j2
Normal file
87
resources/docker-compose/nextcloud.yaml.j2
Normal file
@ -0,0 +1,87 @@
|
||||
---
|
||||
version: "{{ omni_compose_version | string }}"
|
||||
|
||||
|
||||
networks:
|
||||
nextcloud:
|
||||
name: nextcloud
|
||||
driver: overlay
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: {{ omni_compose_apps.nextcloud.networks.main }}
|
||||
|
||||
|
||||
volumes:
|
||||
database:
|
||||
name: datastore{{ omni_compose_apps.nextcloud.datastore }}/database
|
||||
driver: glusterfs
|
||||
data:
|
||||
name: datastore/cloud
|
||||
driver: glusterfs
|
||||
config:
|
||||
name: datastore{{ omni_compose_apps.nextcloud.datastore }}/config
|
||||
driver: glusterfs
|
||||
|
||||
|
||||
services:
|
||||
database:
|
||||
image: mariadb:{{ omni_compose_apps.nextcloud.versions.database | default(omni_compose_apps.nextcloud.versions.default) }}
|
||||
hostname: nextcloud-database
|
||||
networks:
|
||||
- nextcloud
|
||||
volumes:
|
||||
- type: volume
|
||||
source: database
|
||||
target: /var/lib/mysql
|
||||
read_only: false
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: {{ omni_compose_app_secrets.nextcloud.database_password }}
|
||||
MYSQL_DATABASE: nextcloud
|
||||
deploy:
|
||||
replicas: 1
|
||||
|
||||
cache:
|
||||
image: redis:{{ omni_compose_apps.nextcloud.versions.cache | default(omni_compose_apps.nextcloud.versions.default) }}
|
||||
hostname: nextcloud-cache
|
||||
networks:
|
||||
- nextcloud
|
||||
deploy:
|
||||
replicas: 1
|
||||
|
||||
server:
|
||||
image: nextcloud:{{ omni_compose_apps.nextcloud.versions.server | default(omni_compose_apps.nextcloud.versions.default) }}
|
||||
hostname: nextcloud-server
|
||||
networks:
|
||||
- nextcloud
|
||||
depends_on:
|
||||
- database
|
||||
- cache
|
||||
ports:
|
||||
- published: {{ omni_compose_apps.nextcloud.published.ports.80 }}
|
||||
target: 80
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
volumes:
|
||||
- type: volume
|
||||
source: data
|
||||
target: /data
|
||||
read_only: false
|
||||
- type: volume
|
||||
source: config
|
||||
target: /var/www/html
|
||||
read_only: false
|
||||
environment:
|
||||
NEXTCLOUD_DATA_DIR: /data/
|
||||
NEXTCLOUD_ADMIN_USER: admin
|
||||
NEXTCLOUD_ADMIN_PASSWORD: {{ omni_compose_app_secrets.nextcloud.admin_password }}
|
||||
NEXTCLOUD_TRUSTED_DOMAINS: localhost {{ inventory_hostname }} {{ omni_compose_apps.nextcloud.published.host }}
|
||||
MYSQL_DATABASE: nextcloud
|
||||
MYSQL_USER: root
|
||||
MYSQL_PASSWORD: {{ omni_compose_app_secrets.nextcloud.database_password }}
|
||||
MYSQL_HOST: database
|
||||
REDIS_HOST: cache
|
||||
PHP_MEMORY_LIMIT: "4G"
|
||||
PHP_UPLOAD_LIMIT: "4G"
|
||||
deploy:
|
||||
replicas: 1
|
@ -77,3 +77,8 @@ omni_users:
|
||||
uid: 1291
|
||||
targets: [datastore]
|
||||
svc: true
|
||||
|
||||
- name: mech_nextcloud
|
||||
uid: 1290
|
||||
targets: [datastore]
|
||||
svc: true
|
@ -109,3 +109,19 @@ omni_compose_apps:
|
||||
default: 1.1.2
|
||||
database: "10"
|
||||
cache: "6.2"
|
||||
|
||||
nextcloud:
|
||||
datastore: /appdata/nextcloud
|
||||
account:
|
||||
name: mech_nextcloud
|
||||
uid: 1290
|
||||
published:
|
||||
host: wsd.enp.one
|
||||
ports:
|
||||
80: 8082
|
||||
networks:
|
||||
main: 192.168.107.0/24
|
||||
versions:
|
||||
server: 21.0.1
|
||||
database: "10"
|
||||
cache: "6.2"
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0248a5772ab9f35ce8cdf43dfe5926d59636baee
|
||||
Subproject commit 140d4a2a5a5cc57b091745d0b4ee26847817a70f
|
Reference in New Issue
Block a user