Created
November 14, 2021 19:51
-
-
Save domiko96/0e0ccd9eb4e17b7449804772e16980b0 to your computer and use it in GitHub Desktop.
Docker-compose nextcloud setup
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.9" | |
services: | |
caddy: | |
image: caddy | |
restart: unless-stopped | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./caddy/Caddyfile:/etc/caddy/Caddyfile | |
- caddy_data:/data | |
- caddy_config:/config | |
- nc_data:/var/www/html | |
networks: | |
- nextcloud | |
nc_nextcloud: | |
image: nextcloud:22.2.0-fpm-alpine | |
restart: always | |
volumes: | |
- nc_data:/var/www/html | |
networks: | |
- nextcloud | |
environment: | |
- REDIS_HOST=nc_redis | |
- MYSQL_HOST=nc_db | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
- MYSQL_PASSWORD=nextcloud | |
- TRUSTED_PROXIES="192.168.0.0/16" | |
expose: | |
- 9000 | |
nc_redis: | |
image: redis:alpine | |
restart: always | |
networks: | |
- nextcloud | |
volumes: | |
- nc_redis_data:/data | |
expose: | |
- 6379 | |
nc_db: | |
image: mariadb:10.6.4-focal | |
restart: always | |
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed | |
volumes: | |
- nc_db_data:/var/lib/mysql | |
networks: | |
- nextcloud | |
environment: | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
- MYSQL_ROOT_PASSWORD=nextcloud | |
- MYSQL_PASSWORD=nextcloud | |
expose: | |
- 3306 | |
nc_collabora: | |
image: collabora/code:latest | |
restart: always | |
networks: | |
- nextcloud | |
expose: | |
- 9980 | |
environment: | |
- domain=cloud.djk96.rocks | |
- extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:net.proto=IPv4 | |
networks: | |
nextcloud: | |
volumes: | |
caddy_data: | |
caddy_config: | |
nc_data: | |
nc_redis_data: | |
nc_db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment