Hello to all
I am trying to setup a docker instance of Nextcloud with Open Office. My docker_compose.yml is this:
version: "3.9"
services:
db:
image: mariadb:10.11
container_name: nextcloud-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: password
volumes:
- /home/user/docker/nextcloud/db:/var/lib/mysql
networks:
- nextcloud-net
nextcloud:
image: nextcloud:27-apache
container_name: nextcloud
restart: unless-stopped
user: "1000:1000" # Run as host user 'user'
environment:
MYSQL_HOST: db
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: password
ONLYOFFICE_API_URL: "http://onlyoffice:80/"
volumes:
- /home/user/docker/nextcloud/config:/var/www/html/config
- /media/user/storage/cloudstorage:/var/www/html/data
depends_on:
- db
- onlyoffice
ports:
- "12010:80" # Nextcloud web interface
networks:
- nextcloud-net
onlyoffice:
image: onlyoffice/documentserver:7.2.0
container_name: onlyoffice
restart: unless-stopped
ports:
- "12011:80" # OnlyOffice web interface
networks:
- nextcloud-net
networks:
nextcloud-net:
driver: bridge
After the setup I want to use Nginx Reverse Proxy as reverse proxy with SSL certificates issued by my own local CA.
I am deploying using Portainer stack. I get succesfull deployment but I cannot access the web interface using http://<docker_host_ip>:port
Can anyone help?