Docker-compose setup
Before you start
Before setting up the docker-compose, make sure you have the following:
Decide whether or not you want to test the setup with real subdomains or dummy ones provided in the setup as examples (
lobby.cwm.internal
,relay.cwm.internal
)Ensure you have certificates for these subdomains (self-signed or purchased) or generate them
Ensure you have network access to DockerHub from the machine you use for the setup
Ensure the docker-compose version is 1.27 or higher. You may need to install a fresh version manually.
The
README.md
file of the provided archive contains short installation reminders.
Set up docker-compose
Download the docker-compose setup archive from JetBrains web site
Unpack the archive.
Put or copy the
license.key
obtained from JetBrains (trial or purchased) to the./lobby/license.key
file.By default, the file is empty and goes as an example.
Put certificates for lobby and relay subdomains to
./nginx/ssl/
.Generate certificates for lobby and relay components:
openssl ecparam -name secp384r1 -genkey -noout -out lobby/lobby_private.pem
openssl ec -in lobby/lobby_private.pem -pubout -out relay/lobby_public.pem
If you use the setup with our dummy subdomains, add them to the local
hosts
file.If you use your subdomains, edit the following files:
./nginx/nginx.conf (server_name)
docker-compose.yaml (BASE_URL)
./lobby/config.json (wss:/relay)
Run docker-compose up
to start containers.
Example
Check the following code example on how to set up a docker-compose: