mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 21:30:28 +01:00
Frederik Ring
0bb94a2f56
* Set up documentation site using jekyll * Add workflow for deploying docs * Ini formatting is hard to read * Add instructions on how to run docs locally * Work through docs * Remove content from README * Miscellaneous fixes * Fix artifact upload
28 lines
728 B
Markdown
28 lines
728 B
Markdown
---
|
|
title: Set the timezone the container runs in
|
|
layout: default
|
|
parent: How Tos
|
|
nav_order: 8
|
|
---
|
|
|
|
# Set the timezone the container runs in
|
|
|
|
By default a container based on this image will run in the UTC timezone.
|
|
As the image is designed to be as small as possible, additional timezone data is not included.
|
|
In case you want to run your cron rules in your local timezone (respecting DST and similar), you can mount your Docker host's `/etc/timezone` and `/etc/localtime` in read-only mode:
|
|
|
|
```yml
|
|
version: '3'
|
|
|
|
services:
|
|
backup:
|
|
image: offen/docker-volume-backup:v2
|
|
volumes:
|
|
- data:/backup/my-app-backup:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
volumes:
|
|
data:
|
|
```
|