By using docker-compose, details below.
Docker version 19.03.5
docker-compose version 1.21.2
docker-compose up -d
version: '3.6' services: caddy: image: caddy container_name: caddy_reverse_proxy command: caddy run --watch --config /etc/caddy/Caddyfile volumes: - $PWD/Caddyfile:/etc/caddy/Caddyfile - caddy_data:/data - caddy_config:/config ports: - 80:80 - 443:443 networks: - caddy environment: TZ: Europe/Stockholm volumes: caddy_data: caddy_config: networks: caddy: name: caddy_network
The timezone is not set which makes the log output be two hours off. I want to have it configured, but have no clue about how to do this with the official docker-image provided.
I’ve tried setting
TZ=Europe/Stockholm in the docker-compose which have worked for other docker use cases but it does not seem to work for this one. Reading on Stackoverflow points me to different CLIs which not seem to be available in this image.
I figured this should be a quite common use case? But didn’t find anything when searching through the forum…