From 2b44fd284e9e8c6284dbcf7b82d5b102e8ba68bc Mon Sep 17 00:00:00 2001 From: Zachary Laughlin <33877007+ZaxLofful@users.noreply.github.com> Date: Mon, 10 Jul 2023 01:59:00 -0700 Subject: [PATCH] Add timezone to containers to keep them in sync Also, fix some white spacing issues as well at the volume db level. --- docker-compose.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 72ff847..8850200 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,10 @@ services: aliases: - "$MYSQL_HOST" volumes: - - db_data:/var/lib/mysql - - ./pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip + - db_data:/var/lib/mysql + - ./pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro restart: always pf-redis: image: redis:6.2.5-alpine3.14 @@ -19,6 +21,8 @@ services: container_name: redis volumes: - redis_data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: pf: aliases: @@ -34,6 +38,9 @@ services: pf: aliases: - "$PATHFINDER_SOCKET_HOST" + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro restart: always pf: container_name: pathfinder @@ -62,6 +69,8 @@ services: - ./config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini - ./config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini - ./logs:/var/www/html/pathfinder/history/map + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro depends_on: - pfdb - pf-redis @@ -88,8 +97,10 @@ services: - "443:443" - "8080:8080" volumes: - - "/var/run/docker.sock:/var/run/docker.sock:ro" - - "./letsencrypt:/letsencrypt" + - /var/run/docker.sock:/var/run/docker.sock:ro + - ./letsencrypt:/letsencrypt + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro networks: - web restart: always