mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-01 10:48:55 +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
|