Skip to content

Commit

Permalink
consistent TZ across all containers; closes #46 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadatuputi committed Jan 26, 2023
1 parent 7295e9a commit 837c1fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ services:
- BACKUP_EMAIL_NOTIFY
- BACKUP_RCLONE_CONF
- BACKUP_RCLONE_DEST
- TZ
command: >
sh -c 'if [ -n "$BACKUP" ];
then
Expand All @@ -55,8 +56,9 @@ services:
proxy:
# Caddy provides an automatic HTTPS reverse proxy with Let's Encrypt cert provisioning
# Uses local Dockerfile to include tzdata package
# https://caddyserver.com/
image: caddy/caddy:alpine
build: ./docker/caddy
restart: always
container_name: proxy
volumes:
Expand All @@ -71,6 +73,7 @@ services:
- ACME_AGREE=true # agree to ACME for auto HTTPS
- DOMAIN # Value-less variables are set in .env
- EMAIL
- TZ


ddns:
Expand Down
3 changes: 3 additions & 0 deletions docker/caddy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM caddy/caddy:alpine

RUN apk add --no-cache tzdata

0 comments on commit 837c1fc

Please sign in to comment.