Expose postgres ports
Remove linking, which was deprecated. This fixes the issue where the db does not start.
This commit is contained in:
Родитель
9bc450318e
Коммит
041fb3f5af
|
@ -3,6 +3,10 @@ version: '2.1'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:9.4
|
image: postgres:9.4
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
environment:
|
||||||
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
|
@ -12,8 +16,6 @@ services:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
links:
|
|
||||||
- db
|
|
||||||
command: serve
|
command: serve
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/app/
|
- ./:/app/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче