From 7eff19401fc66b29c0ef7ddb4b9708da6482b9ac Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 30 Mar 2016 12:31:04 -0300 Subject: [PATCH] Teste porta DB --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1ffb56762..fcf321adf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,11 @@ -localhost: +db: image: postgres environment: POSTGRES_PASSWORD: sapl POSTGRES_USER: sapl POSTGRES_DB: sapl + ports: + - "5432" web: build: . command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000" @@ -12,4 +14,4 @@ web: ports: - "8000:8000" links: - - localhost + - db