docker-compose/thinkcentre/nextcloud/docker-compose.yml

44 lines
871 B
YAML
Raw Normal View History

version: '2'
volumes:
app:
services:
app:
container_name: nextcloud
image: nextcloud
restart: always
ports:
- 8080:80
volumes:
- app:/var/www/html
- /mnt/data/nextcloud/files:/var/www/html/data
- /mnt/data/nextcloud/config:/var/www/html/config
environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
networks:
- mariadb_default
- proxy
networks:
mariadb_default:
external: true
proxy:
# name: proxy
external: true
volumes:
files:
driver_opts:
type: "nfs"
o: "addr=192.168.1.100,nfsvers=4"
device: ":/mnt/data/nextcloud/files"
config:
driver_opts:
type: "nfs"
o: "addr=192.168.1.100,nfsvers=4"
device: ":/mnt/data/nextcloud/config"