Closed ghost closed 5 years ago
I guess you need to mount your nextcloud files (/var/www/html) into nginx container?.
I guess you need to mount your nextcloud files (/var/www/html) into nginx container?.
You are right, I totally forgot that.
Working perfect right now.
Fixed docker-compose.yml
version: "3.7"
services:
service-mariadb:
image: mariadb
container_name: container-mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./files/MariaDB:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=REPLACE_WITH_PASSWORD_MYSQL_ROOT
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=REPLACE_WITH_PASSWORD_MYSQL_USER
- MYSQL_DATABASE=nextcloud
service-nextcloud:
image: nextcloud:fpm-alpine
container_name: container-nextcloud
depends_on:
- service-mariadb
volumes:
- ./files/Nextcloud:/var/www/html:rw
environment:
- NEXTCLOUD_TRUSTED_DOMAINS=REPLACE_WITH_DOMAIN
- NEXTCLOUD_ADMIN_USER=REPLACE_WITH_USERNAME
- NEXTCLOUD_ADMIN_PASSWORD=REPLACE_WITH_PASSWORD_NEXTCLOUD
- MYSQL_HOST=service-mariadb
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=REPLACE_WITH_PASSWORD_MYSQL_USER
service-nginx:
image: nginx:alpine
container_name: container-nginx
depends_on:
- service-nextcloud
ports:
- 80:80
volumes:
- ./files/Nextcloud:/var/www/html:rw
- ./files/NGINX/nginx.conf:/etc/nginx/nginx.conf:ro
- ./files/NGINX/conf.d:/etc/nginx/conf.d:ro
Many thanks dude, it was driving me crazy.
Wow, it was a wild guess, I'm glad I could help! Was fiddling with similar things myself last week.
Hi ! Sorry beforehand if my english is not perfect, it isn't my mother tongue. I couldn't make php-fpm work properly with nginx, even following the examples here.
Here is my folder structure:
docker-compose.yml
./files/NGINX/conf.d
./files/NGINX/conf.d/my_domain.conf
Versions
Weird looking page
Note: I removed the SSL from NGINX on purpose, to keep it simple... I have exactly the same issues with SSL enabled.
Thanks in advance if someone can say me what I'm doing wrong.