mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 15:28:54 +00:00
b9247c16df
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
16 lines
206 B
Go
16 lines
206 B
Go
version: "3"
|
|
services:
|
|
|
|
db:
|
|
image: postgres
|
|
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|
|
links:
|
|
- db
|