Nextcloud and only office docker compose

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?

Hello @Kos_Kot, welcome back :handshake:

Nextcloud version you are using is highly outdated, I would recommend start with supported one either nc30 or nc31 (nc32 planned for end of Sep). Many good examples exist starting from official Docker .examples over more advanced docker-compose-setup-with-notify-push-2024 to custom variants for details use search.

this is the foundation of the system - start troubleshooting here - review logs 101: logging, which logs exist, how to access and understand, DNS, routing, firewall. return with more details if you need help. I feel 101: Self-hosting information for beginners could help you for better start. Once ready look at Collabora integration guide - similar to OnlyOffice but more common and IMO the way to go today.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.