Added new nextcloud fpm variant
This commit is contained in:
@@ -1,8 +1,25 @@
|
||||
version: '2'
|
||||
version: "3"
|
||||
|
||||
volumes:
|
||||
nextcloud:
|
||||
db:
|
||||
nchome:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/home
|
||||
ncdb:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/database
|
||||
ncdata:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/dockerstorage/nextcloud/storage
|
||||
|
||||
|
||||
services:
|
||||
db:
|
||||
@@ -10,7 +27,7 @@ services:
|
||||
restart: always
|
||||
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
- ncdb:/var/lib/mysql:Z
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=rootpw
|
||||
- MYSQL_PASSWORD=password
|
||||
@@ -23,7 +40,8 @@ services:
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
- nchome:/var/www/html:z
|
||||
- ncdata:/var/www/html/data
|
||||
environment:
|
||||
- MYSQL_PASSWORD=password
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
@@ -32,17 +50,27 @@ services:
|
||||
- REDIS_HOST=redis
|
||||
|
||||
web:
|
||||
image: nginx
|
||||
build: ./nginx
|
||||
restart: always
|
||||
ports:
|
||||
- 7777:80
|
||||
links:
|
||||
- app
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
volumes_from:
|
||||
- app
|
||||
- nchome:/var/www/html:z,ro
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
restart: always
|
||||
|
||||
cron:
|
||||
image: nextcloud:fpm-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- nchome:/var/www/html:z
|
||||
- ncdata:/var/www/html/data
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
|
||||
|
||||
Reference in New Issue
Block a user