Docker
Edit this pageBefore you start using Relax you must have Docker on your system. Please check their documentation if you need more information about it.
We continuously build our official Docker image into Docker’s registry. To use our latest docker image you just have to have MongoDB running on a different container and link it to Relax.
To start MongoDB in the background you can run docker run -d --name mongo mongo.
Afterwards run docker run -p 8080:8080 --link mongo -it relax/relax to start
Relax on http://localhost:8080.
Docker Compose
Relax ships with a docker-compose file ready to start everything needed by
running few commands.
You can use this either as a starting point for your own docker-compose.yml
file or just use the one we provide directly.
Data Volumes
Our docker-compose.yml comes configured with two external volumes that must be
defined by the user before we can start the stack, which are relax-media and
relax-mongo, they store file uploads and MongoDB data, respectively. To create
them run:
|
|
You can check where their located by running docker volume inspect relax-media
or docker volume inspect relax-mongo.
Start Relaxing
To start relaxing, run the following commands from Relax’s root directory:
|
|
You should be able to access the instance of Relax through
http://localhost:8080.