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:
44
dockerfiles/services/nextcloud/docker-compose.yml
Normal file → Executable file
44
dockerfiles/services/nextcloud/docker-compose.yml
Normal file → Executable 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"
|
||||
|
||||
Reference in New Issue
Block a user