1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nextcloud/docker-compose.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2022-01-07 12:20:29 +02:00
version: "3.8"
2016-11-03 04:30:36 +02:00
2022-01-07 12:20:29 +02:00
services:
nextcloud:
2022-08-29 12:34:39 +02:00
image: nextcloud:stable-apache
2022-01-07 12:20:29 +02:00
ports:
- "8080:80"
volumes:
2022-01-10 12:15:02 +02:00
- ./data/nextcloud:/var/www/html
2022-01-07 12:20:29 +02:00
environment:
2022-08-29 12:34:39 +02:00
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.easypi.duckdns.org
- OVERWRITEHOST=nextcloud.easypi.duckdns.org
- OVERWRITEPROTOCOL=https
- PHP_MEMORY_LIMIT=2048M
- PHP_UPLOAD_LIMIT=4096M
2022-01-07 12:20:29 +02:00
- POSTGRES_HOST=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- REDIS_HOST=redis
2022-01-10 11:48:05 +02:00
- OBJECTSTORE_S3_HOST=oss-cn-beijing.aliyuncs.com
- OBJECTSTORE_S3_PORT=443
- OBJECTSTORE_S3_SSL=true
- OBJECTSTORE_S3_KEY=xxxxxx
- OBJECTSTORE_S3_SECRET=xxxxxx
- OBJECTSTORE_S3_BUCKET=nextcloud
- OBJECTSTORE_S3_USEPATH_STYLE=false
2022-01-07 12:20:29 +02:00
depends_on:
- postgres
- redis
restart: unless-stopped
postgres:
image: postgres:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_DB=nextcloud
restart: unless-stopped
redis:
2022-08-29 12:31:08 +02:00
image: redis:7-alpine
2022-01-07 12:20:29 +02:00
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped