Skip to content

Instantly share code, notes, and snippets.

@moraisaugusto
Created June 20, 2021 21:13
Show Gist options
  • Save moraisaugusto/d0fb5e0b73c977f4204bf4823e4c47ee to your computer and use it in GitHub Desktop.
Save moraisaugusto/d0fb5e0b73c977f4204bf4823e4c47ee to your computer and use it in GitHub Desktop.
nextcloud + Bucket (docker-compose)
version: '3'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: unless-stopped
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=PASS
- MYSQL_PASSWORD=PASS
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
environment:
- OBJECTSTORE_S3_SSL=true
- OBJECTSTORE_S3_USEPATH_STYLE=true
- OBJECTSTORE_S3_BUCKET=BUCKET
- OBJECTSTORE_S3_KEY=KEY
- OBJECTSTORE_S3_SECRET=SECRET
- OBJECTSTORE_S3_REGION=REGION
- OBJECTSTORE_S3_HOST=REGION_HOST
- OBJECTSTORE_S3_PORT=443
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment