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

38 lines
807 B
YAML

version: '2'
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
- /mnt/data/nextcloud/config/nextcloud.log:/var/www/html/data/nextcloud.log
environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
healthcheck:
test: ["CMD", "../lan-healthcheck.sh"]
interval: 20s
retries: 5
timeout: 10s
networks:
# - mariadb_default
- proxy
networks:
#mariadb_default:
# external: true
proxy:
name: proxy
external: true
volumes:
app: