From a7ada33ff930d3409ecabfe97b954e18d11fae36 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Sat, 9 Nov 2019 13:41:46 +0200 Subject: [PATCH] Open port 5432 on docker-compose --- .gitlab-ci.yml | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34021fb..9230d03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ test: image: python:3.7 stage: test services: - - postgres:latest + - postgres:12 variables: POSTGRES_DB: ci POSTGRES_USER: postgres diff --git a/docker-compose.yml b/docker-compose.yml index 3a662a1..b422087 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: image: postgres:12 volumes: - dbdata:/var/lib/postgresql/data + ports: + - "5432:5432" web: build: . image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend