fooder-api/docker-compose.yml

31 lines
494 B
YAML
Raw Normal View History

2023-04-01 16:19:12 +02:00
version: '3'
networks:
fooder:
driver: bridge
services:
database:
restart: unless-stopped
image: postgres
networks:
- fooder
env_file:
- .env
api:
restart: unless-stopped
image: api
build:
dockerfile: Dockerfile
context: .
networks:
- fooder
env_file:
- .env
volumes:
- ./fooder:/opt/fooder/fooder
ports:
- "8000:8000"
command: "uvicorn fooder.app:app --host 0.0.0.0 --port 8000 --reload"