docker-compose-collection/nextcloud/docker-compose.yml

47 lines
966 B
YAML
Raw Permalink Normal View History

2023-09-24 13:44:19 +08:00
---
version: '2'
services:
app:
image: nextcloud:fpm
restart: unless-stopped
# ports:
# - 8081:80
volumes:
- ./data:/var/www/html
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextclouduser
- MYSQL_PASSWORD=nextcloudpass
- MYSQL_HOST=db
- REDIS_HOST=redis
- PHP_UPLOAD_LIMIT=32G
- PHP_MEMORY_LIMIT=3G
db:
image: mariadb
restart: unless-stopped
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./sqldata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root_next
- MYSQL_PASSWORD=nextcloudpass
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextclouduser
redis:
image: redis:alpine
restart: unless-stopped
web:
image: nginx
restart: unless-stopped
ports:
- 8081:80
links:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- app