Mount timezone/localtime for all containers.
This commit is contained in:
parent
b09f380957
commit
b4af47519d
@ -13,6 +13,8 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
volumes:
|
volumes:
|
||||||
- {{ authentik_volume_db }}:/var/lib/postgresql/data
|
- {{ authentik_volume_db }}:/var/lib/postgresql/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD={{ authentik_db_password }}
|
- POSTGRES_PASSWORD={{ authentik_db_password }}
|
||||||
- POSTGRES_USER={{ authentik_db_user }}
|
- POSTGRES_USER={{ authentik_db_user }}
|
||||||
@ -31,6 +33,8 @@ services:
|
|||||||
timeout: 3s
|
timeout: 3s
|
||||||
volumes:
|
volumes:
|
||||||
- {{ authentik_volume_redis }}:/data
|
- {{ authentik_volume_redis }}:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
server:
|
server:
|
||||||
image: ghcr.io/goauthentik/server:{{ authentik_image_version }}
|
image: ghcr.io/goauthentik/server:{{ authentik_image_version }}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -47,6 +51,8 @@ services:
|
|||||||
- {{ authentik_volume_media }}:/media
|
- {{ authentik_volume_media }}:/media
|
||||||
- {{ authentik_volume_templates }}:/templates
|
- {{ authentik_volume_templates }}:/templates
|
||||||
- {{ authentik_volume_geoip }}:/geoip
|
- {{ authentik_volume_geoip }}:/geoip
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- {{ authentik_volume_config }}/env.authentik.conf
|
- {{ authentik_volume_config }}/env.authentik.conf
|
||||||
ports:
|
ports:
|
||||||
@ -73,6 +79,8 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- {{ authentik_volume_templates }}:/templates
|
- {{ authentik_volume_templates }}:/templates
|
||||||
- {{ authentik_volume_geoip }}:/geoip
|
- {{ authentik_volume_geoip }}:/geoip
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- {{ authentik_volume_config }}/env.authentik.conf
|
- {{ authentik_volume_config }}/env.authentik.conf
|
||||||
{% if authentik_geoip_container %}
|
{% if authentik_geoip_container %}
|
||||||
@ -80,6 +88,8 @@ services:
|
|||||||
image: "maxmindinc/geoipupdate:latest"
|
image: "maxmindinc/geoipupdate:latest"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ authentik_volume_geoip }}:/usr/share/GeoIP"
|
- "{{ authentik_volume_geoip }}:/usr/share/GeoIP"
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- {{ authentik_volume_config }}/env.authentik.conf
|
- {{ authentik_volume_config }}/env.authentik.conf
|
||||||
{% endif %}
|
{% endif %}
|
Loading…
Reference in New Issue
Block a user