docker_practice/compose/demo/django/docker-compose.yml

16 lines
237 B
Go
Raw Normal View History

2017-11-23 07:48:52 +00:00
version: "3"
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: 'postgres'
2017-11-23 07:48:52 +00:00
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
2017-11-23 07:48:52 +00:00
volumes:
- .:/code
ports:
- "8000:8000"