2017-10-02 19:10:47 +00:00
|
|
|
version: "2"
|
2016-09-29 20:20:10 +00:00
|
|
|
services:
|
|
|
|
db:
|
2017-02-15 03:01:47 +00:00
|
|
|
build: postgres-hstore
|
2016-09-29 20:20:10 +00:00
|
|
|
|
|
|
|
web:
|
|
|
|
build: .
|
2017-05-09 23:22:56 +00:00
|
|
|
command: wait-for-it db:5432 -- bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
|
2016-09-29 20:20:10 +00:00
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
- db
|