-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.16 KB
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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- MAX_FILE_SIZE_MB=${MAX_FILE_SIZE_MB}
- RATE_LIMIT_PER_MINUTE=${RATE_LIMIT_PER_MINUTE}
- ENABLE_HSTS=${ENABLE_HSTS}
- SECURITY_LOG_FILE=${SECURITY_LOG_FILE}
- LOG_LEVEL=${LOG_LEVEL}
- ENVIRONMENT=${ENVIRONMENT}
- UVICORN_HOST=${UVICORN_HOST}
- UVICORN_PORT=${UVICORN_PORT}
- UVICORN_RELOAD=${UVICORN_RELOAD}
volumes:
- ./backend:/app
- ./outputs:/app/outputs
networks:
- autopattern-net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=${NODE_ENV:-production}
- VITE_HOST=${VITE_HOST:-localhost}
- VITE_PORT=${VITE_PORT:-3000}
- VITE_APP_URL=${VITE_APP_URL:-http://localhost:3000}
- VITE_API_URL=${VITE_API_URL:-http://localhost:8000}
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- autopattern-net
networks:
autopattern-net:
driver: bridge