fastapi: add dev envs support

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
Milas Bowman
2022-07-05 11:58:31 -04:00
parent 8784f95a69
commit 035e3c5b43
4 changed files with 44 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
services:
api:
build:
context: .
target: dev-envs
container_name: fastapi-application
environment:
PORT: 8000
ports:
- '8000:8000'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: "no"