Browse Source

Teste porta DB

pull/284/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Edward Ribeiro
parent
commit
7eff19401f
  1. 6
      docker-compose.yml

6
docker-compose.yml

@ -1,9 +1,11 @@
localhost: db:
image: postgres image: postgres
environment: environment:
POSTGRES_PASSWORD: sapl POSTGRES_PASSWORD: sapl
POSTGRES_USER: sapl POSTGRES_USER: sapl
POSTGRES_DB: sapl POSTGRES_DB: sapl
ports:
- "5432"
web: web:
build: . build: .
command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000" command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
@ -12,4 +14,4 @@ web:
ports: ports:
- "8000:8000" - "8000:8000"
links: links:
- localhost - db

Loading…
Cancel
Save