Nextcloud
I currently host a Nextcloud container on my private VPS. I use it to manage files as well as my schedule. It is an open-source alternative to cloud giants like Google or Microsoft.
Deployed simply with a Docker container on my private OVH VPS.
Compose.yml
Here is the Docker Compose configuration:
services:
db:
image: mariadb
container_name: nextcloud_db
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=user
networks:
- webnet
app:
image: nextcloud
container_name: nextcloud_server
restart: always
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=user
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=subdomain.domain.com
- OVERWRITEHOST=subdomain.domain.com
- OVERWRITEPROTOCOL=https
- OVERWRITECLIURL=https://subdomain.domain.com
- PHP_UPLOAD_LIMIT=20M
- PHP_MEMORY_LIMIT=512M
- webnet
- web
redis:
image: redis
container_name: nextcloud_redis
restart: always
command: ["--databases", "1"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- redis:/data
networks:
- webnet
volumes:
nextcloud:
db:
redis:
networks:
webnet:
web:
external: true
Technologies
- Docker
- Nextcloud