Skip to content

Commit

Permalink
chore: fixed indentation (#2618)
Browse files Browse the repository at this point in the history
## Description 

Provide a concise summary of the changes made in this pull request
- Fixed indentation for Docker auto-update

## Pull request type

Check the appropriate box:

- [ ] Review Fixes
- [ ] Documentation Overhaul
- [ ] Feature/Story
    - Link one or more Engineering Tickets
        * 
- [ ] A-Force
- [x] Error in documentation
- [ ] Maintenance

## Documentation tickets

 Link to one or more documentation tickets:
 - 

## Checklist

From the below options, select the ones that are applicable:

- [ ] Checked for Grammarly suggestions.
- [ ] Adhered to the writing checklist.
- [ ] Adhered to the media checklist.
- [ ] Verified and updated cross-references or added redirect rules.
- [ ] Tested the redirect rules on deploy preview.
- [ ] Validated the modifications made to the content on the deploy
preview.
- [ ] Validated the CSS modifications on different screen sizes.

---------

Co-authored-by: Goutham Pratapa <[email protected]>
  • Loading branch information
jnikhila and pratapaprasanna authored Oct 24, 2024
1 parent 0b48e4d commit b8827be
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ Follow the below steps to schedule automatic updates for Appsmith Docker install
```
2. Open the `docker-compose.yml` file and add the below code block after the `restart` attribute in the `appsmith` service. Note that you must add a 6 space-separated fields cron expression, not the traditional 5 space-separated fields to the `command` attribute. See the [CRON Expression Format](https://pkg.go.dev/github.com/robfig/[email protected]#hdr-CRON_Expression_Format) section to learn more. Based on the specified cron expression, watchtower updates Appsmith at the stipulated time whenever a new version becomes available.

```yaml
```yaml
labels:
com.centurylinklabs.watchtower.enable: "true"
auto_update:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Update check interval in seconds.
#highlight-next-line
command: --schedule "0 0 * ? * *" --label-enable --cleanup
restart: unless-stopped
depends_on:
- appsmith
environment:
- WATCHTOWER_LIFECYCLE_HOOKS=true
auto_update:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Update check interval in seconds.
command: --schedule "0 0 * ? * *" --label-enable --cleanup
restart: unless-stopped
depends_on:
- appsmith
environment:
- WATCHTOWER_LIFECYCLE_HOOKS=true
```
The above 6 space-separated fields cron expression `0 0 * ? * *` means that the task runs every day of every month, regardless of the day of the week or year, at midnight (0:00). You can change the schedule, adjust the cron expression accordingly. If you wish to update Appsmith immediately, you can opt for a manual update and follow the steps in the [Update Appsmith](/getting-started/setup/instance-management/update-appsmith/#update-on-docker) guide.
Expand Down

0 comments on commit b8827be

Please sign in to comment.