forked from lucastononro/llm-food-delivery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 906 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.7'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
- frontend
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- type: bind
source: ./backend
target: /app
working_dir: /app
command: poetry run python -i -m uvicorn src.main:app --host 0.0.0.0 --port 8080 --reload
ports:
- "8080:8080"
env_file:
- ./backend/.env
stdin_open: true
tty: true
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
working_dir: /app
volumes:
- /app/node_modules
- ./frontend:/app
command: npm run dev -- --mode production
ports:
- "5173:5173"
restart: on-failure
environment:
- NODE_ENV=production
- VITE_APP_API_URL=http://localhost:8080