Fix the example in README

This commit is contained in:
Burin Choomnuan 2020-07-04 15:47:53 -04:00
parent a5a78008ba
commit 35209a2656

View file

@ -21,9 +21,9 @@ The library provides a set of functions to interact with the testcontainers. A s
(def container (-> (tc/create {:image-name "postgres:12.1"
:exposed-ports [5432]
:env-vars {"POSTGRES_PASSWORD" "verysecret"}})
(tc/configure-volume! {:file-system-bind {:host-path "/tmp"
:container-path "/opt"
:mode :read-only}})
(tc/bind-filesystem {:host-path "/tmp"
:container-path "/opt"
:mode :read-only})
(tc/start!))
(do-database-testing (:host container)