44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
version: '3'
|
|
|
|
volumes:
|
|
nextcloud:
|
|
db:
|
|
services:
|
|
db:
|
|
image: mariadb:latest
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
|
|
volumes:
|
|
- ./data/db:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-secret}
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-secret}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
|
|
- MYSQL_USER=${MYSQL_USER:-nextcloud}
|
|
redis:
|
|
image: redis:latest
|
|
restart: always
|
|
command: redis-server --requirepass ${REDIS_PASSWORD:-secret}
|
|
|
|
app:
|
|
image: nextcloud:latest
|
|
restart: always
|
|
ports:
|
|
- "8080:80"
|
|
links:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ./data/app/:/var/www/html
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-secret}
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-secret}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
|
|
- MYSQL_USER=${MYSQL_USER:-nextcloud}
|
|
- MYSQL_HOST=db
|
|
- REDIS_HOST_PASSWORD=${REDIS_PASSWORD:-secret}
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
... |