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,47 +5,41 @@
# docker-compose build && docker push dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest
# DOCKER_HOST=dkhost:2376 docker stack deploy --with-registry-auth -c docker-compose-prod.yml owncloud
version: '3'
version: '2'
volumes:
nextcloud:
db:
cache:
services:
owncloud:
image: "dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest"
build:
context: .
dockerfile: Dockerfile
db:
image: mariadb
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_PASSWORD=test
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
xaicloud:
image: nextcloud:fpm
links:
- db
volumes:
- nextcloud:/var/www/html
web:
image: nginx
ports:
- 8083:80
# - 9083:9000
links:
- app
volumes:
- ./data:/var/www/html
#
# collabora:
# image: collabora/code
# ports:
# - 9980:9980
# environment:
# domain: office\\.xai-corp\\.net
# username: admin
# password: ah8031qhnbc
# server_name: office.xai-corp.net
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- cache:/data/nginx/cache/nextcloud
volumes_from:
- app
# letsencrypt:
# image: linuxserver/letsencrypt
# volumes:
# - ./letsencrypt:/config
# environment:
# URL: xai-corp.net
# SUBDOMAINS: www,sql,xaibox,office
# TZ: America/Montreal
# EMAIL: r_morgan@sympatico.ca
#TODO:
# cron:
# http:
# image: "dkregistry.xai-corp.net:5000/sslproxy:2.0"
# volumes:
# - ./letsencrypt:/etc/letsencrypt:ro
# ports:
# - "443:443"