Open port 5432 on docker-compose

This commit is contained in:
Aarni Halinen
2019-11-09 13:41:46 +02:00
parent 59a59685d1
commit a7ada33ff9
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ test:
image: python:3.7
stage: test
services:
- postgres:latest
- postgres:12
variables:
POSTGRES_DB: ci
POSTGRES_USER: postgres
+2
View File
@@ -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