Deploy docker-compose apps (Wordpress, MySQL, Redis, Keycloak ...)
You are about to learn how to deploy docker-compose applications to a CI/CD target. This is useful when you don't need a Git workflow and your images are already available on a public or private docker registry.
Use cases:
- Deploy one or multiple instances of stateful apps like Wordpress / Directus / MySQL / Redis / RabbitMQ / ...
- Deploy an internal service available only to your private network
- Deploy an app built somewhere else and published to a private docker registry
First, open Elestio dashboard and click on CI/CD
1) Select your sourceapp to deploy
When you select Docker compose deployment method, we provide few samples of applications that you can deploy
From there click on Github or Gitlab, you will be asked to provide authorization to list your projects in Elestio.
Then you will be able to browse Organizations & Repositories detected on your account. You can also use the search to find directly your project to deploy. Once you found it, click on Import, then click on next.
2) Select your target (where to deploy)
Here you have to indicate where the app should be deployed, it can be a "New infrastructure", in that case you can select your preferred provider / region / instance size. Or an existing infrastructure, then you just have to pick it in the list.
3) Configure your projectapp
This is the last step of the process where you can configureadjust yourthe projectapp name,settings, branch,docker runtime,compose, env vars and allreverse other settings about your build and environnementproxy configuration.
a) globalDocker-compose settingsstack
Indicate the project/pipeline name, build and run commands. It's prepopulated but you can adjust to your needs.
b) Environment variables
In most case you will have to indicate configuration for your app through env vars. This is useful to pass various configuration to your app like database connection string, S3 bucket details, email address to use and other global configuration.
c) Reverse proxy
To make your app accessible on internet, indicate in the target port the same thing you have configured on host port in the docker-compose ports binding.
Finally click on "Create CI/CD pipeline" to complete your deployment.
After few minutes your app should be accessible on the CI/CD pipeline url, you can find it in the dashboard overview of your pipeline. Your generated credentials are visible in the "Build & Deploy" tab in the env var section or reverse proxy section if you have activated basic authentication.