55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
|
---
|
||
|
version: '3'
|
||
|
|
||
|
networks:
|
||
|
default:
|
||
|
web:
|
||
|
external: true
|
||
|
|
||
|
volumes:
|
||
|
apps:
|
||
|
data:
|
||
|
config:
|
||
|
nextcloud:
|
||
|
db:
|
||
|
|
||
|
services:
|
||
|
nc-db:
|
||
|
image: docker.io/mariadb:10.5
|
||
|
restart: always
|
||
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||
|
volumes:
|
||
|
- db:/var/lib/mysql
|
||
|
environment:
|
||
|
- MARIADB_AUTO_UPGRADE=1
|
||
|
- MARIADB_ROOT_HOST=localhost
|
||
|
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
|
||
|
- MARIADB_DATABASE=nextcloud
|
||
|
- "MARIADB_PASSWORD=${MARIADB_PASSWORD:-secret}"
|
||
|
- MARIADB_USER=nextcloud
|
||
|
|
||
|
nextcloud:
|
||
|
image: docker.io/nextcloud:latest
|
||
|
restart: always
|
||
|
networks:
|
||
|
- default
|
||
|
- web
|
||
|
volumes:
|
||
|
- nextcloud:/var/www/html
|
||
|
- apps:/var/www/html/custom_apps
|
||
|
- config:/var/www/html/config
|
||
|
- data:/var/www/html/data
|
||
|
environment:
|
||
|
- "NEXTCLOUD_TRUSTED_DOMAINS=${NC_TRUSTED_DOMAINS:-nc.localhost}"
|
||
|
- "MYSQL_PASSWORD=${MARIADB_PASSWORD:-secret}"
|
||
|
- MYSQL_DATABASE=nextcloud
|
||
|
- MYSQL_USER=nextcloud
|
||
|
- MYSQL_HOST=nc-db
|
||
|
- REDIS_HOST=nc-redis
|
||
|
depends_on:
|
||
|
- nc-db
|
||
|
- nc-redis
|
||
|
|
||
|
nc-redis:
|
||
|
image: docker.io/redis:latest
|