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

42 lines
829 B
YAML
Raw Normal View History

version: '2'
services:
app:
container_name: nextcloud
image: nextcloud
restart: always
ports:
- 8080:80
volumes:
- app:/var/www/html
- files:/var/www/html/data
- 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:
app:
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"