mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-01 10:48:55 +00:00
9d62668fcf
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
16 lines
237 B
Go
16 lines
237 B
Go
version: "3"
|
|
services:
|
|
|
|
db:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: 'postgres'
|
|
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- "8000:8000"
|