]> cat aescling's git repositories - mastodon.git/commitdiff
add persistance to Postresql container
authorValentin_NC <valentin.ouvrard@nautile.sarl>
Tue, 4 Apr 2017 22:06:08 +0000 (09:06 +1100)
committerValentin_NC <valentin.ouvrard@nautile.sarl>
Tue, 4 Apr 2017 22:06:08 +0000 (09:06 +1100)
docker-compose.yml

index d6ba66ddeb49927cb55e1fb878e1499db716fdb8..9a0155fbfda1c54d56b629532c3bb99aecf2c7f0 100644 (file)
@@ -3,6 +3,8 @@ services:
   db:
     restart: always
     image: postgres:alpine
+    volumes:
+      - ./postgres-data:/var/lib/postgresql/data
   redis:
     restart: always
     image: redis:alpine