-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.25 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
version: "3.8"
services:
# Local MinIO for development
minio:
image: minio/minio:latest
container_name: s3explorer-minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin123}
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
app:
build: .
container_name: s3explorer
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
- DATA_DIR=/data
# REQUIRED: Set a strong password (12+ chars, upper, lower, number, special)
- APP_PASSWORD=${APP_PASSWORD}
# REQUIRED: Set a random session secret (use: openssl rand -hex 32)
- SESSION_SECRET=${SESSION_SECRET}
volumes:
- app_data:/data
depends_on:
- minio
volumes:
minio_data:
app_data:
# Usage:
# 1. Create .env file with:
# APP_PASSWORD=YourSecureP@ssw0rd!
# SESSION_SECRET=$(openssl rand -hex 32)
# MINIO_ROOT_USER=minioadmin
# MINIO_ROOT_PASSWORD=minioadmin123
#
# 2. docker-compose up -d