use nginx with caching for nextcloud fpm

This commit is contained in:
2018-03-12 22:40:03 -04:00
parent 978e2cf56d
commit 3ed65eefe9
11 changed files with 167 additions and 63 deletions

View File

@@ -5,18 +5,18 @@
# DOCKER_HOST=dkhost:2376 docker stack ps owncloud
version: '3.4'
volumes:
cache:
services:
app:
image: dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest
ports:
- 8083:80
# - 9083:9000
xaicloud:
image: "dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest"
volumes:
- /opt/shared/nextcloud/data:/var/www/html/data
- /opt/shared/nextcloud/config:/var/www/html/config
- /opt/shared/nextcloud/apps:/var/www/html/custom_apps
deploy:
mode: replicated
replicas: 1
@@ -30,15 +30,50 @@ services:
order: start-first
resources:
limits:
memory: 512M
networks:
- prod
# logging:
# driver: fluentd
# options:
# fluentd-address: "logs.xai-corp.net:24224"
# fluentd-async-connect: 'true'
# tag: nextcloud
web:
image: "dkregistry.xai-corp.net:5000/xaicorp/nextcloud-web:latest"
ports:
- 8083:80
volumes:
- cache:/data/nginx/cache/nextcloud
- /opt/shared/nextcloud/data:/var/www/html/data
- /opt/shared/nextcloud/config:/var/www/html/config
- /opt/shared/nextcloud/apps:/var/www/html/custom_apps
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: any
delay: "30s"
max_attempts: 5
update_config:
parallelism: 1
delay: 2s
order: start-first
resources:
limits:
# cpus: '1'
memory: 512M
logging:
driver: fluentd
options:
fluentd-address: "logs.xai-corp.net:24224"
fluentd-async-connect: 'true'
tag: nextcloud
# healthcheck:
# test: curl -f http://localhost ||exit 1
# interval: 1m30s
# timeout: 1s
# retries: 2
networks:
- ingress
- prod
# collabora:
# image: collabora/code