github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/docs/install/docker.md (about) 1 # Docker Installation 2 3 Official docker image is available in [Docker Hub repository](https://hub.docker.com/repository/docker/hellofreshtech/janus). 4 We also have a some cool examples with [Docker Compose template](https://github.com/hellofresh/janus/blob/master/examples) with built-in orchestration and scalability. 5 6 Here is a quick example showing how to link a Janus container to a MongoDB container: 7 8 1. **Start your database:** 9 10 If you wish to use a database instead of a file system based configuration just start the mongodb container: 11 12 ```sh 13 $ docker run -d --name janus-database \ 14 -p 27017:27017 \ 15 mongo:3.0 16 ``` 17 18 2. **Configure the update frequency** 19 20 You should configure how frequently Janus will check for changes on your database. You can set this by changing the cluster configuration: 21 22 ```toml 23 [cluster] 24 UpdateFrequency = "5s" 25 ``` 26 27 You can find more information about Janus clusters in the [clustering](../clustering/clustering.md) section. 28 29 3. **Start Janus:** 30 31 Start a Janus container and link it to your database container (if you are using it), configuring the `DATABASE_DSN` environment variable with the connection string like `mongodb://janus-database:27017/janus`: 32 33 ```sh 34 $ docker run -d --name janus \ 35 --link janus-database:janus-database \ 36 -e "DATABASE_DSN=mongodb://janus-database:27017/janus" \ 37 -p 8080:8080 \ 38 -p 8443:8443 \ 39 -p 8081:8081 \ 40 -p 8444:8444 \ 41 hellofreshtech/janus 42 ``` 43 44 3. **Janus is running:** 45 46 ```sh 47 $ curl http://127.0.0.1:8081/ 48 ```