screenshot-to-code/docker-compose.yml
Mithra 22527de20e
Update docker-compose.yml
Co-authored-by: Vick Vasquez <vasjvic@hotmail.com>
2023-11-20 23:30:28 +05:30

27 lines
675 B
YAML

version: '3.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
environment:
- - BACKEND_PORT=${BACKEND_PORT:-7001} # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.env.local
- OPENAI_API_KEY=${OPENAI_API_KEY:-} # works when you have the OPENAI_API_KEY set in your .env file
ports:
- "${BACKEND_PORT:-7001}:${BACKEND_PORT:-7001}"
command: poetry run uvicorn main:app --host 0.0.0.0 --port ${BACKEND_PORT:-7001}
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"