-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (86 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
93 lines (86 loc) · 1.87 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- DATABASE_URL=postgresql://pcb_user:pcb_password@db:5432/pcb_routing
- SECRET_KEY=your-secret-key-change-in-production
- API_V1_STR=/api/v1
- PROJECT_NAME=PCB Routing AI Agent
volumes:
- ./backend:/app
- uploads_volume:/app/uploads
depends_on:
- db
restart: unless-stopped
networks:
- pcb-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:3001
- REACT_APP_WS_URL=ws://localhost:3001/ws
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: unless-stopped
networks:
- pcb-network
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: pcb_routing
POSTGRES_USER: pcb_user
POSTGRES_PASSWORD: pcb_password
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
restart: unless-stopped
networks:
- pcb-network
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
networks:
- pcb-network
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/ssl:/etc/nginx/ssl
depends_on:
- frontend
- backend
restart: unless-stopped
networks:
- pcb-network
volumes:
postgres_data:
driver: local
redis_data:
driver: local
uploads_volume:
driver: local
networks:
pcb-network:
driver: bridge