From 247cdc0fd6d30acb39b2c26d4113b9f0fd8cb905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Tue, 12 Jan 2021 22:19:24 -0300 Subject: [PATCH] Add docker-compose.yml to setup a postgres database for tests --- docker-compose.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..878d61d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: "3.7" + +services: + pg: + image: postgres:12.1 + # The `always` option below will make sure this + # container is started when you turn on your machine, + # so you don't have to worry about it everytime. + restart: always + ports: + # The 127.0.0.1 prefix makes sure this instance + # cannot be accessed externally, so it is ok + # for this instante to have no password. + - "127.0.0.1:5432:5432" + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=postgres