Compare commits

...

4 Commits

Author SHA1 Message Date
Ethan Paul 030965d7e6
Add service account for nextcloud app 2021-04-25 21:48:54 -04:00
Ethan Paul 915a2b0b59
Update secrets submodule 2021-04-25 21:48:53 -04:00
Ethan Paul 53d4cd9769
Add nextcloud app config 2021-04-25 21:48:53 -04:00
Ethan Paul 7afb860de9
Add compose file for nextcloud app 2021-04-25 21:35:52 -04:00
4 changed files with 103 additions and 1 deletions

View File

@ -0,0 +1,81 @@
---
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{{ omni_compose_apps.nextcloud.datastore }}/data
driver: glusterfs
config:
name: datastore{{ omni_compose_apps.nextcloud.datastore }}/config
driver: glusterfs
services:
server:
image: nextcloud:{{ omni_compose_apps.nextcloud.versions.server | default(omni_compose_apps.nextcloud.versions.default) }}
hostname: nextcloud-server
networks:
- nextcloud
ports:
- published: {{ omni_compose_apps.nextcloud.ports.8080 }}
target: 8080
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 }}
MYSQL_DATABASE: nextcloud
MYSQL_USER: root
MYSQL_PASSWORD: {{ omni_compose_app_secrets.nextcloud.database_password }}
MYSQL_HOST: database
REDIS_HOST: cache
deploy:
replicas: 1
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

View File

@ -77,3 +77,8 @@ omni_users:
uid: 1291
targets: [datastore]
svc: true
- name: mech_nextcloud
uid: 1290
targets: [datastore]
svc: true

View File

@ -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:
8080: 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