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,35 +2,43 @@
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: - nextcloud-config:/var/www/html/config:rw
- ./configs/init:/root/init - nextcloud-apps:/var/www/html/apps:rw
- ./configs/etc/nginx:/etc/nginx - /mnt/vol0/nextcloud-data:/var/www/html/data:rw
- ./configs/etc/php:/etc/php depends_on:
- ./configs/var/www/html/config:/var/www/html/config - mysql
- ./logs:/root/logs
- ./nextcloud:/var/www/html nginx:
- ./nextcloud-apps:/var/www/html/apps image: git.shihaam.dev/dockerfiles/nextcloud/nginx
- /mnt/hdd/nextcloud-data:/var/www/html/data #CHANGE MOUNT POINT FOR THIS hostname: nginx
ports: ports:
- 8000:80 - 8003:80
######################### volumes_from:
db: - fpm
image: mysql:8 depends_on:
environment: - fpm
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud mysql:
MYSQL_PASSWORD: nextcloud image: mysql:8.0-debian
MYSQL_ALLOW_EMPTY_PASSWORD: true hostname: mysql
volumes: environment:
- ./database:/var/lib/mysql MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_ALLOW_EMPTY_PASSWORD: true
volumes:
- ./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. \