This guide uses Docker Compose to run OpenCloud in containers. OpenCloud is a modern file sync and share platform built on Go with filesystem-based storage (no database required).
For Docker installation, see Docker.
Create a docker-compose.yml file with the following content:
version: '3.8'
services:
opencloud:
image: opencloudeu/opencloud:latest
container_name: opencloud
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./data:/root/.opencloud
environment:
- OC_URL=https://cloud.example.com
- OC_ADMIN_USERNAME=admin
- OC_ADMIN_PASSWORD=your-secure-password
cap_add:
- SYS_CHROOT
- SYS_ADMIN
Security Note: Replace your-secure-password with a strong, unique password before deployment.
docker compose up -d
Wait for the container to start (approximately 30-60 seconds for first run).
Open http://YOUR-SERVER:8080 and log in with:
adminOC_ADMIN_PASSWORDFor production deployments:
/root/.opencloud data directoryFor production, configure OIDC authentication:
environment:
- OC_URL=https://cloud.example.com
- OC_OIDC_ISSUER=https://keycloak.example.com/realms/opencloud
- OC_OIDC_CLIENT_ID=opencloud
- OC_OIDC_CLIENT_SECRET=your-client-secret
See Configuration and Security for production hardening.
Any questions?
Feel free to contact us. Find all contact information on our contact page.