From ce20d1e740f7a6087e685dd1aa7a89cb3a7f9f64 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Wed, 17 Apr 2019 17:11:05 +0200 Subject: [PATCH] Documentation --- .gitignore | 1 + README.md | 11 +++++++++++ docker-compose-postgres.yml | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8284b57..5c9568d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ secrets/license.xml mysql-connector-java*.jar postgresql-*.jar +.idea/ diff --git a/README.md b/README.md index 486e2ac..6f42cb3 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,18 @@ $ cp postgres/tomcat/lib/ $ cp secrets/license.xml $ docker-compose -f docker-compose-pe.yml -f docker-compose-postgres.yml up ``` +## Timezones +Timezones can be tricky to configure using Docker (and docker-compose). + +A common way to copy the host timezone in your containers is to share /etc/timezone as a volume: + +``` + volumes: + - "/etc/timezone:/etc/timezone:ro" +``` + +This requires, of course, that both your host and the containers relies on this configuration file. ## TODO diff --git a/docker-compose-postgres.yml b/docker-compose-postgres.yml index 4833c6a..fd32938 100644 --- a/docker-compose-postgres.yml +++ b/docker-compose-postgres.yml @@ -19,7 +19,7 @@ services: POSTGRES_DB: orbeon POSTGRES_USER: orbeon volumes: - - "/home/vdv/var/postgres/jouve:/var/lib/postgresql/data" + - "/volumes/orbeon/postgres:/var/lib/postgresql/data" networks: - net