Draft
Conversation
- Qovery allows sharing cookie across subdomains at .qovery.fr - Configure public/ headers
2e4efd0 to
7b2111f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR contains code changes and describes the required steps to deploy a Rails application with AnyCable on Qovery (full mode, with gRPC service).
Changes
bin/docker-entrypointscript as an entrypoint (it's borrowed from Rails)webandws).Qovery tips
We tested our setup using Qovery playground cluster. The resulting formation is depicted below:
The
webservice is the default Rails web service.The
rpcservice is a clone of the web service with the following changes:["bundle","exec","anycable","--rpc-host","0.0.0.0:50051"](to run AnyCable RPC server)anycable.RPC)The
wsservice is deployed directly from Dockerhub:/healthHTTP endpoint.The following environment variables have been set to connect services and databases:
DATABASE_URLas an alias forQOVERY_POSTGRESQL_<XXX>_DATABASE_URL_INTERNAL(scope: Application)REDIS_URLas an alias forQOVERY_REDIS_<XXX>_DATABASE_URL_INTERNAL(scope: Application)APPLICATION_RPC_HOST_INTERNALas an alias forQOVERY_APPLICATION_<RPC_SERVICE_ID>_HOST_INTERNAL(scope: Environment)APPLICATION_WS_HOST_EXTERNALas an alias forQOVERY_APPLICATION_<WS_SERVICE_ID>_HOST_EXTERNAL(scope: Environment)CABLE_URLaswss://${APPLICATION_WS_HOST_EXTERNAL}/cable(scope: Environment)ANYCABLE_RPC_HOSTas{{APPLICATION_RPC_HOST_INTERNAL}}:50051(scope: Service,ws)ANYCABLE_HOST=0.0.0.0(scope: Service,ws)