Last active
April 20, 2024 21:57
-
-
Save opentaq/62b243c62f4b8c8f712ac8d86d52c9eb to your computer and use it in GitHub Desktop.
Nextcloud Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
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