mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-19 21:13:39 +00:00
16 lines
207 B
Go
16 lines
207 B
Go
|
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
|