1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/nextcloud/docker-compose.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2022-01-07 10:20:29 +00:00
version: "3.8"
2016-11-03 02:30:36 +00:00
2022-01-07 10:20:29 +00:00
services:
nextcloud:
2022-08-29 10:34:39 +00:00
image: nextcloud:stable-apache
2022-01-07 10:20:29 +00:00
ports:
- "8080:80"
volumes:
2022-01-10 10:15:02 +00:00
- ./data/nextcloud:/var/www/html
2022-01-07 10:20:29 +00:00
environment:
2022-08-29 10:34:39 +00: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 10:20:29 +00:00
- POSTGRES_HOST=postgres
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
- REDIS_HOST=redis
2022-01-10 09:48:05 +00: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 10:20:29 +00: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 10:31:08 +00:00
image: redis:7-alpine
2022-01-07 10:20:29 +00:00
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped