forked from alpadalar/fortigate-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.2 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
version: '3.8'
services:
fortigate-mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: fortigate-mcp-server
restart: unless-stopped
ports:
- "8814:8814"
volumes:
# Mount configuration file (required)
- ./config/config.json:/app/config/config.json:ro
# Mount logs directory
- ./logs:/app/logs
environment:
- FORTIGATE_MCP_CONFIG=/app/config/config.json
networks:
- fortigate-mcp-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Optional: Nginx reverse proxy
nginx:
image: nginx:alpine
container_name: fortigate-mcp-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
depends_on:
- fortigate-mcp-server
networks:
- fortigate-mcp-network
profiles:
- nginx
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "3"
networks:
fortigate-mcp-network:
driver: bridge
name: fortigate-mcp-network
volumes:
fortigate-logs:
driver: local