-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(standalone-deployment): Standalone host deployment improved and …
…documented (#9445) * Docker compose stack improved * Remove unused containers from docker-compse and add useful comment on .env.example about PGSSLMODE * Docker compose profiles added. Documentation extended on how to use the profiles to manage the stack. * README fixed as docker compose up and down commands were not working * Typo fixed and docker-compose command replaced by docker compose
- Loading branch information
1 parent
e4a831a
commit 61ba015
Showing
4 changed files
with
166 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# See https://github.com/ParabolInc/parabol/blob/master/.env.example | ||
# DO NOT SET PGSSLMODE to an empty value. Postgres will not be able to start. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
# Docker Host Single Tenant (ST) | ||
|
||
To run the Parabol UBI in single tenant mode (e.g. simple docker-compose on a docker host). | ||
To run Parabol in single tenant mode (e.g. simple docker-compose on a docker host). | ||
|
||
1. Build your Parabol UBI using instructions in `docker/ubi/docker-build/README.md` | ||
2. Create a working `.env` from `.env.example` | ||
3. Update docker-compose.yaml `image: #image:tag` with your built image tag from `step (1.)` | ||
4. Run `docker-compose up -d` to deploy the local stack. You can run `docker-compose down` to terminate the local stack | ||
5. Check logs via command `docker logs <name>-app-1` and wait for the following output to appear | ||
4. Run `docker compose --profile databases --profile parabol up -d` to deploy the local stack. You can run `docker compose --profile databases --profile parabol down` to terminate the local stack | ||
5. Check logs via command `docker logs <name> -f` and wait for the following output to appear | ||
|
||
```shell | ||
🔥🔥🔥 Server ID: 0. Ready for Sockets: Port 3000 🔥🔥🔥 | ||
💧💧💧 Server ID: 0. Ready for GraphQL Execution 💧💧💧 | ||
💧💧💧 Server ID: 01. Ready for GraphQL Execution 💧💧💧 | ||
``` | ||
|
||
## Upgrade Parabol version | ||
|
||
1. Edit the `docker-compose.yaml` and change the `#image:tag` changing the tag. Ex: from `v7.15.0` to `v7.15.2`. | ||
2. (optional) In a different terminal, run `docker compose logs -f` to follow the upgrade. | ||
3. Run `docker compose --profile databases --profile parabol up -d`. It will start the `pre-deploy` and, once it is done successfully, then it will stop and recreate the `web-server` and `gql-executor` with the new version of the image. **This step implies a downtime**. | ||
4. Verify the application is still up and running. | ||
|
||
## Running Chronos | ||
|
||
Chronos isn't started by default. If it needs to run, it must be managed using `docker compose --profile databases --profile parabol --profile chronos up`. | ||
|
||
This will run `pre-deploy` and thus it will recreate the `web-server` and the `gql-executor`. | ||
|
||
## Database debug | ||
|
||
Some tools are available to debug the databases is needed: | ||
|
||
- pgadmin | ||
- redis-commander | ||
|
||
To operate them use `docker compose up --profile databases --profile database-debug`. | ||
|
||
## Running the whole stack | ||
|
||
- Start the whole stack: `docker compose --profile databases --profile parabol --profile database-debug --profile chronos up -d`. | ||
- Stop the stack: `docker compose --profile databases --profile parabol --profile database-debug --profile chronos down` |
This file contains 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
This file was deleted.
Oops, something went wrong.