33 lines
771 B
YAML
Executable File
33 lines
771 B
YAML
Executable File
version: '3'
|
|
|
|
services:
|
|
nextcloud:
|
|
container_name: nextcloud
|
|
hostname: nextcloud
|
|
image: nextcloud:latest
|
|
depends_on:
|
|
- nextcloud-mariadb
|
|
ports:
|
|
- 8083:80/tcp
|
|
restart: always
|
|
volumes:
|
|
- ./appdata/nextcloud/html:/var/www/html
|
|
- /mnt/storage:/truenas
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
nextcloud-mariadb:
|
|
container_name: nextcloud-mariadb
|
|
hostname: nextcloud-mariadb
|
|
image: mariadb:latest
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=nextcloud
|
|
- MYSQL_PASSWORD=nextcloud
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
expose:
|
|
- 3306/tcp
|
|
restart: always
|
|
volumes:
|
|
- ./appdata/nextcloud-mariadb/mysql:/var/lib/mysql
|
|
- /etc/localtime:/etc/localtime:ro
|