refactor docker swarm to use just home without workers for now

add caching at nginx level for portainer and gitea
This commit is contained in:
2018-04-07 08:11:23 -04:00
parent 3ed65eefe9
commit 83ec6809d6
45 changed files with 438 additions and 192 deletions

44
dockerfiles/services/nextcloud/docker-compose.yml Normal file → Executable file
View File

@@ -5,10 +5,10 @@
# 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: '2'
version: '3'
volumes:
nextcloud:
# nextcloud:
db:
cache:
@@ -25,21 +25,41 @@ services:
- MYSQL_USER=nextcloud
xaicloud:
image: nextcloud:fpm
links:
- db
image: dkregistry.xai-corp.net:5000/xaicorp/nextcloud:latest
volumes:
- nextcloud:/var/www/html
# - nextcloud:/var/www/html
- ./config:/var/www/html/config
- ./php/errorlog.conf:/usr/local/etc/php-fpm.d/errorlog.conf
environment:
- DBTYPE=mysql
- DBHOST=db
- DBPORT=3306
- DBNAME=nextcloud
- DBUSER=nextcloud
- DBPASS=test
- REDISHOST=redis
- REDISPORT=6379
- LOGLEVEL=3
web:
image: nginx
image: dkregistry.xai-corp.net:5000/xaicorp/nextcloud-web:latest
ports:
- 8083:80
links:
- app
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- cache:/data/nginx/cache/nextcloud
volumes_from:
- app
# - nextcloud:/var/www/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./config:/var/www/html/config
memcached:
image: "memcached:alpine"
ports:
- "11211:11211"
command:
- memcached
- -m64
redis:
image: "redis:4-alpine"
ports:
- "6379:6379"