Open tykocompany opened 1 month ago
@tykocompany, do you see any errors in the browser network console.
@tykocompany
The set of docker images are built to run on 1 primary domain. I can see that you are trying to host all microservices on different domain. Try modifying it as below.
- traefik.http.routers.web.rule=Host(plane.mydomain.com)
- traefik.http.routers.space.rule=Host(plane.mydomain.com) && PathPrefix(`/spaces/`)
- traefik.http.routers.admin.rule=Host(plane.mydomain.com) && PathPrefix(`/god-mode/`)
- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/api/`)
- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/auth/`)
Also, you may want to refer plane.env
for the additional variables which are not included in the docker-compose.yaml
.
I configured it as reported and checked it in the console as Pablo said. It did not load again and displayed the following error.
@tykocompany, as @mguptahub suggested the current plane instance is not meant to be run on multiple domains. If you require running them on multiple domain you have to build your own images.
@pablohashescobar configured the routes as @mguptahub recommended. But even with the configuration he recommended, an error occurred that I sent in the printout.
@tykocompany can you please share the error you are getting after implementing the suggested changes ?
@tykocompany
The set of docker images are built to run on 1 primary domain. I can see that you are trying to host all microservices on different domain. Try modifying it as below.
- traefik.http.routers.web.rule=Host(plane.mydomain.com) - traefik.http.routers.space.rule=Host(plane.mydomain.com) && PathPrefix(`/spaces/`) - traefik.http.routers.admin.rule=Host(plane.mydomain.com) && PathPrefix(`/god-mode/`) - traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/api/`) - traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/auth/`)
Also, you may want to refer
plane.env
for the additional variables which are not included in thedocker-compose.yaml
.
I pretty much did as what is suggested above. The api endpoint returns 404 for /api/instances/
and /api/users/me
. I suspect all /api calls returns 404.
Is there an existing issue for this?
Current behavior
I deployed the stack to Portainer using Docker Swarm and Traefik to do the reverse proxy. It deployed normally, but when I try to log in, absolutely nothing happens. It's like it's just a static screen, I've tried everything and I haven't been able to resolve it.
I left the file I used to deploy the stack as an attachment.
Steps to reproduce
version: "3.7"
x-app-env: &app-env environment:
Gunicorn Workers
DB SETTINGS
REDIS SETTINGS
Application secret
DATA STORE SETTINGS
Admin and Space URLs
services: web: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${APP_RELEASE:-stable} restart: unless-stopped command: node web/server.js web deploy: replicas: ${WEB_REPLICAS:-1} labels:
plane.mydomain.com
)traefik.http.services.web.loadbalancer.server.port=3000 networks:
space: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-space:${APP_RELEASE:-stable} restart: unless-stopped command: node space/server.js space deploy: replicas: ${SPACE_REPLICAS:-1} labels:
space.mydomain.com
)traefik.http.services.space.loadbalancer.server.port=3000 networks:
admin: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-admin:${APP_RELEASE:-stable} restart: unless-stopped command: node admin/server.js admin deploy: replicas: ${ADMIN_REPLICAS:-1} labels:
admin.mydomain.com
)traefik.http.services.admin.loadbalancer.server.port=3000 networks:
api: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable} restart: unless-stopped command: ./bin/docker-entrypoint-api.sh deploy: replicas: ${API_REPLICAS:-1} labels:
api.mydomain.com
)traefik.http.services.api.loadbalancer.server.port=3000 volumes:
worker: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable} restart: unless-stopped command: ./bin/docker-entrypoint-worker.sh volumes:
beat-worker: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable} restart: unless-stopped command: ./bin/docker-entrypoint-beat.sh volumes:
migrator: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-backend:${APP_RELEASE:-stable} restart: "no" command: ./bin/docker-entrypoint-migrator.sh volumes:
plane-db: image: postgres:15.5-alpine restart: unless-stopped command: postgres -c 'max_connections=1000' environment:
plane-redis: image: redis:7.2.5-alpine restart: unless-stopped volumes:
volumes: pgdata: redisdata: logs_api: logs_worker: logs_beat-worker: logs_migrator:
networks: mynetwork: external: true name: mynetwork
Environment
Production
Browser
Other
Variant
Self-hosted
Version
stable