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

16 lines
207 B
YAML
Raw Normal View History

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