Docker: fix time zones

This commit is contained in:
Marko Korhonen 2025-06-07 18:04:40 -05:00
parent 1e1f1299d1
commit fe65265dff
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
8 changed files with 8 additions and 20 deletions

View file

@ -5,9 +5,9 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- proxy - proxy
environment:
- TZ=Europe/Helsinki
- IPV6_LOCALIZE=4 - IPV6_LOCALIZE=4
volumes:
- /etc/localtime:/etc/localtime:ro
networks: networks:
proxy: proxy:
external: true external: true

View file

@ -12,10 +12,9 @@ services:
environment: environment:
- PUID=1000 - PUID=1000
- PGID=985 - PGID=985
- TZ=Europe/Helsinki
volumes: volumes:
- config:/config
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- config:/config
networks: networks:
freshrss: freshrss:
external: false external: false

View file

@ -9,11 +9,9 @@ services:
container_name: home-assistant container_name: home-assistant
image: homeassistant/home-assistant image: homeassistant/home-assistant
restart: unless-stopped restart: unless-stopped
environment:
- TZ=Europe/Helsinki
volumes: volumes:
- hass:/config
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- hass:/config
networks: networks:
- homeautomation - homeautomation
- postgres - postgres

View file

@ -9,8 +9,6 @@ services:
jellyfin: jellyfin:
image: jellyfin/jellyfin image: jellyfin/jellyfin
container_name: jellyfin container_name: jellyfin
environment:
- TZ=Europe/Helsinki
ports: ports:
- 8096:8096 - 8096:8096
networks: networks:
@ -18,11 +16,11 @@ services:
- authentik - authentik
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /etc/localtime:/etc/localtime:ro
- config:/config - config:/config
- cache:/cache - cache:/cache
- media:/media - media:/media
- nextcloud_data:/nextcloud_data - nextcloud_data:/nextcloud_data
- /etc/localtime:/etc/localtime:ro
devices: devices:
- /dev/dri/renderD128:/dev/dri/renderD128 - /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card1:/dev/dri/card0 - /dev/dri/card1:/dev/dri/card0

View file

@ -4,10 +4,8 @@ services:
mumble: mumble:
container_name: mumble container_name: mumble
image: phlak/mumble image: phlak/mumble
environment:
- TZ=Europe/Helsinki
network_mode: host network_mode: host
volumes: volumes:
- config:/etc/mumble
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- config:/etc/mumble
restart: unless-stopped restart: unless-stopped

View file

@ -4,15 +4,13 @@ services:
postgres: postgres:
container_name: postgres container_name: postgres
image: postgres:16 image: postgres:16
environment:
- TZ=Europe/Helsinki
ports: ports:
- 127.0.0.1:5432:5432 - 127.0.0.1:5432:5432
networks: networks:
- postgres - postgres
volumes: volumes:
- data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- data:/var/lib/postgresql/data
restart: unless-stopped restart: unless-stopped
networks: networks:
postgres: postgres:

View file

@ -2,8 +2,6 @@ services:
tftp: tftp:
container_name: tftp container_name: tftp
image: pghalliday/tftp image: pghalliday/tftp
environment:
- TZ=Europe/Helsinki
restart: unless-stopped restart: unless-stopped
ports: ports:
- 69:69/udp - 69:69/udp

View file

@ -6,14 +6,13 @@ services:
image: linuxserver/tvheadend image: linuxserver/tvheadend
container_name: tvheadend container_name: tvheadend
environment: environment:
- TZ=Europe/Helsinki
- PUID=1000 - PUID=1000
- PGID=985 - PGID=985
volumes: volumes:
- /etc/localtime:/etc/localtime:ro
- config:/config - config:/config
- picons:/picons - picons:/picons
- /mnt/Storage/Media/PVR:/recordings - /mnt/Storage/Media/PVR:/recordings
- /etc/localtime:/etc/localtime:ro
ports: ports:
- 9981:9981 - 9981:9981
- 9982:9982 - 9982:9982