-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
51 lines (48 loc) · 1 KB
/
compose.yaml
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
46
47
48
49
50
51
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: fastapi-app
command: poetry run uvicorn main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
volumes:
- ./backend:/app
depends_on:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
restart: always
networks:
- app-network
redis:
image: redis:alpine
container_name: redis
command: redis-server
ports:
- "6379:6379"
restart: always
networks:
- app-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend-app
environment:
- FRONTEND_ENV=production
- VITE_BACKEND_API_URL=http://backend:8000
- VITE_PWD_SIGNUP_ENABLED=true
- VITE_GA_TRACKING_ID=your-ga-tracking-id
ports:
- "5173:80"
depends_on:
- backend
restart: always
networks:
- app-network
networks:
app-network:
driver: bridge