totaljs / openplatform

OpenPlatform v5 is a beautiful and simple portal for running, integrating and managing multiple 3rd party web applications.
https://www.totaljs.com/openplatform/
MIT License
95 stars 45 forks source link

openplatform docker compose #73

Closed yilativ closed 3 months ago

yilativ commented 3 months ago

Hi, so I got done with the openplatform set up as it is in readme.

Then I added this to the docker compose file:

version: '3.1'

services:
  postgres:
    container_name: postgres
    image: postgres:latest
    ports:
      - 5432:5432
    volumes:
      - pgdata:/var/lib/postgresql/data/
    environment:
      - POSTGRES_USER=total
      - POSTGRES_PASSWORD=platform
      - POSTGRES_DB=openplatform
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "total", "-d", "openplatform"]
      interval: 3s
      timeout: 3s
      retries: 5

  openplatform:
    container_name: openplatform
    image: totalplatform/openplatform:latest
    ports:
      - 8100:8000
    volumes:
      - openplatform:/www/databases/
    environment:
      - DATABASE=postgresql://total:platform@postgres:5432/openplatform
    depends_on:
      postgres:
        condition: service_healthy

  uistudio: 
    container_name: uistudio
    image: totalplatform/uistudio:latest
    ports:
      - 8101:8000

  flow: 
    container_name: flow
    image: totalplatform/flow:latest
    ports:
      - 8102:8000

volumes:
  pgdata:
    driver: local
  openplatform:
    driver: local

Individually they work when I use host.docker.internal:<>.

However, when I import into the openplatform, using for example their domain names that would be available to openplatform: http://flow:8102/openplatform.json. It imports, but then when I try to use the app, it's just 403.

I don't know how to gain access after that and the openplatform home or app screen really give me indication on how to access it. How do I get back into the imported app?

yilativ commented 3 months ago

Oh there was one more step that I did not see anywhere until I pocked around...

Admin group then needs to be granted access for the imported app. Then I am able to see it and then able to get into it

petersirka commented 3 months ago

We will update the documentation by adding this information.

yilativ commented 3 months ago

We will update the documentation by adding this information.

Awesome! And incredible work you and your team has done, need to make sure I communicate that as well, very impressive