mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-15 02:42:22 +00:00
Update Docker Compose file format 3
This commit is contained in:
15
compose/demo/django/docker-compose.yml
Normal file
15
compose/demo/django/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
Reference in New Issue
Block a user