updated readme with new compose file

This commit is contained in:
Shihaam Abdul Rahman 2024-06-29 18:42:41 +05:00
parent 9dadb07279
commit fc5140d237
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -2,28 +2,32 @@
I dont like official nextcloud docker I dont like official nextcloud docker
- `docker-compose.yml` - `compose.yml`
```yaml ```yaml
version: '3.5'
services: services:
######################### fpm:
app: image: git.shihaam.dev/dockerfiles/nextcloud/fpm:latest
image: git.shihaam.dev/dockerfiles/nextcloud hostname: fpm
hostname: nextcloud
volumes: volumes:
- ./configs/init:/root/init - nextcloud-config:/var/www/html/config:rw
- ./configs/etc/nginx:/etc/nginx - nextcloud-apps:/var/www/html/apps:rw
- ./configs/etc/php:/etc/php - /mnt/vol0/nextcloud-data:/var/www/html/data:rw
- ./configs/var/www/html/config:/var/www/html/config depends_on:
- ./logs:/root/logs - mysql
- ./nextcloud:/var/www/html
- ./nextcloud-apps:/var/www/html/apps nginx:
- /mnt/hdd/nextcloud-data:/var/www/html/data #CHANGE MOUNT POINT FOR THIS image: git.shihaam.dev/dockerfiles/nextcloud/nginx
hostname: nginx
ports: ports:
- 8000:80 - 8003:80
######################### volumes_from:
db: - fpm
image: mysql:8 depends_on:
- fpm
mysql:
image: mysql:8.0-debian
hostname: mysql
environment: environment:
MYSQL_DATABASE: nextcloud MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud MYSQL_USER: nextcloud
@ -31,6 +35,10 @@ services:
MYSQL_ALLOW_EMPTY_PASSWORD: true MYSQL_ALLOW_EMPTY_PASSWORD: true
volumes: volumes:
- ./database:/var/lib/mysql - ./database:/var/lib/mysql
volumes:
nextcloud-config:
nextcloud-apps:
``` ```
- You must use a reverse proxy with SSL before starting to setup, personally i use nginx with certbot. \ - You must use a reverse proxy with SSL before starting to setup, personally i use nginx with certbot. \