Replies: 2 comments
-
|
this is pretty cool! We might want to add it to the docs as well |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Note, after upgrading to 1.0.0, you need to make some modifications to the Traefik configuration: ...
backend:
image: ghcr.io/rybbit-io/rybbit-backend:${IMAGE_TAG:-latest}
build:
context: ./server
dockerfile: Dockerfile
networks:
track:
traefik:
environment:
- NODE_ENV=production
- CLICKHOUSE_HOST=http://clickhouse:8123
- CLICKHOUSE_DB=${CLICKHOUSE_DB:-analytics}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-frog}
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${POSTGRES_DB:-analytics}
- POSTGRES_USER=${POSTGRES_USER:-frog}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-frog}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BASE_URL=${BASE_URL}
- DISABLE_SIGNUP=${DISABLE_SIGNUP}
depends_on:
clickhouse:
condition: service_healthy
postgres:
condition: service_started
restart: unless-stopped
labels:
traefik.enable: "true"
traefik.docker.network: traefik
traefik.http.routers.backend-api.rule: "Host(`yourdomain.com`) && PathPrefix(`/api`)"
traefik.http.routers.backend-api.tls: "true"
traefik.http.routers.backend-api.tls.certresolver: myresolver
traefik.http.services.backend-api.loadbalancer.server.port: 3001
- traefik.http.middlewares.strip-api-prefix.stripprefix.prefixes: /api
- traefik.http.routers.backend-api.middlewares: strip-api-prefix
traefik.http.routers.backend-api.priority: 2
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I'd like to share my personal approach to using Traefik (docker mode) to proxy Rybbit. This is just for reference, and I hope it helps others who want to use this solution. I haven't encountered any issues with this method so far.
rybbit/docker-compose.yaml:rybbit/.env:traefik/docker-compose.yaml:Note: Using this approach, it's not necessary to clone the entire Rybbit repository or use the
setup.shscript. You can simply create thedocker-compose.yamland.envfiles manually. Therefore, this method is suitable for people who have some familiarity with Docker.Beta Was this translation helpful? Give feedback.
All reactions