From: Lorin Hochstein Date: Sun, 29 Jan 2017 05:30:58 +0000 (-0800) Subject: Volume mount postgres X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=7bc68a5b20e58817dd37d7b58b2c4f144d703fc1;p=ansiblebook.git Volume mount postgres --- diff --git a/ch13/ansible/container.yml b/ch13/ansible/container.yml index 54f0e04..ffcc71d 100644 --- a/ch13/ansible/container.yml +++ b/ch13/ansible/container.yml @@ -60,4 +60,7 @@ services: POSTGRES_DB: "{{ DATABASE_NAME }}" POSTGRES_USER: "{{ DATABASE_USER }}" POSTGRES_PASSWORD: "{{ DATABASE_PASSWORD }}" + PGDATA: /var/lib/postgresql/data/pgdata + volumes: + - ${PWD}/pgdata:/var/lib/postgresql/data/pgdata