Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Burtens authored Oct 22, 2022
1 parent 8b505da commit b314700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ docker config create swarm_updater_config <path-to-file>
3. Deploy on your swarm swarm using Docker Compose.
* Make sure you include an env file if you need external varibles for deployment.
* To ensure that the tool can use docker commands add the volume ```/var/run/docker.sock:/var/run/docker.sock``` to give the tool access to the Docker daemon.
* The following relates to [Swarm Cronjob](https://github.com/crazy-max/swarm-cronjob). Here the tool has been setup to run every 2 mins and will not re run if the tool is already running.
* In order to configure [Swarm Cronjob](https://github.com/crazy-max/swarm-cronjob) Docker Labels are used. In the following the tool has been setup to run every 2 mins and will not re run if already running.
```
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=*/2 * * * *" # Testing Update Every Minute
- "swarm.cronjob.skip-running=true"
```

An example of a compose file can be seen below:
An example of a full compose file to setup the Swarm Stack Updater can be seen below:
```
version: '3.8'
Expand Down

0 comments on commit b314700

Please sign in to comment.