Open port 5432 on docker-compose
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ test:
|
|||||||
image: python:3.7
|
image: python:3.7
|
||||||
stage: test
|
stage: test
|
||||||
services:
|
services:
|
||||||
- postgres:latest
|
- postgres:12
|
||||||
variables:
|
variables:
|
||||||
POSTGRES_DB: ci
|
POSTGRES_DB: ci
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ services:
|
|||||||
image: postgres:12
|
image: postgres:12
|
||||||
volumes:
|
volumes:
|
||||||
- dbdata:/var/lib/postgresql/data
|
- dbdata:/var/lib/postgresql/data
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend
|
image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend
|
||||||
|
|||||||
Reference in New Issue
Block a user