-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.67 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
version: '3.8'
services:
minio:
image: minio/minio:latest
container_name: mcp-chart-minio
ports:
- "${MINIO_EXTERNAL_PORT:-9000}:${MINIO_PORT:-9000}"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- mcp-network
app:
build:
context: .
dockerfile: Dockerfile
container_name: mcp-chart-app
ports:
- "${PORT:-3000}:${PORT:-3000}"
environment:
- NODE_ENV=${NODE_ENV:-production}
- PORT=${PORT:-3000}
- HOST=${HOST:-0.0.0.0}
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost:3000}
- MINIO_ENDPOINT=${MINIO_ENDPOINT:-minio}
- MINIO_PORT=${MINIO_PORT:-9000}
- MINIO_USE_SSL=${MINIO_USE_SSL:-false}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-minioadmin}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-minioadmin}
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME:-charts}
- MINIO_AUTO_CREATE_BUCKET=${MINIO_AUTO_CREATE_BUCKET:-true}
# External MinIO access configuration (host IP/domain for URL generation)
- MINIO_EXTERNAL_ENDPOINT=${MINIO_EXTERNAL_ENDPOINT:-localhost}
- MINIO_EXTERNAL_PORT=${MINIO_EXTERNAL_PORT:-9000}
depends_on:
minio:
condition: service_healthy
networks:
- mcp-network
restart: unless-stopped
networks:
mcp-network:
driver: bridge
volumes:
minio_data:
driver: local