Skip to content

Instantly share code, notes, and snippets.

@opentaq
Last active April 20, 2024 21:57
Show Gist options
  • Save opentaq/62b243c62f4b8c8f712ac8d86d52c9eb to your computer and use it in GitHub Desktop.
Save opentaq/62b243c62f4b8c8f712ac8d86d52c9eb to your computer and use it in GitHub Desktop.
Nextcloud Container
```
version: '3'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=somerootpassword
- MYSQL_PASSWORD=somemysqlpassword
- MYSQL_DATABASE=db
- MYSQL_USER=mysqluser
redis:
image: redis
restart: always
command: redis-server --requirepass someredispassword
app:
image: nextcloud
restart: always
ports:
- 8080:80
links:
- db
- redis
volumes:
- nextcloud:/var/www/html/data
environment:
- MYSQL_PASSWORD=somemysqlpassword
- MYSQL_DATABASE=db
- MYSQL_USER=mysqluser
- MYSQL_HOST=db
- REDIS_HOST_PASSWORD=someredispassword
depends_on:
- db
- redis
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment