mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-06-08 09:52:11 +08:00
16 lines
237 B
YAML
16 lines
237 B
YAML
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"
|