-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 978 Bytes
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
services:
# Backend server
server:
build:
context: .
dockerfile: Dockerfile.server
container_name: mcp-host-server
restart: unless-stopped
ports:
- "4000:4000"
environment:
- NODE_ENV=production
- PORT=4000
- CLIENT_URL=http://localhost:3000
- CREDENTIAL_ENCRYPTION_KEY=1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
volumes:
- ./server/logs:/app/logs
networks:
- mcp-network
extra_hosts:
- "host.docker.internal:host-gateway"
# Frontend client
client:
build:
context: .
dockerfile: Dockerfile.client
args:
- REACT_APP_API_BASE_URL=http://localhost:4000
container_name: mcp-host-client
restart: unless-stopped
ports:
- "3000:3000"
environment:
- REACT_APP_API_BASE_URL=http://localhost:4000
depends_on:
- server
networks:
- mcp-network
networks:
mcp-network:
driver: bridge