-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 943 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 943 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
# OpenBucket — standalone deployment.
#
# 1. cp .env.example .env && edit the secrets (set ADMIN_PASSWORD + JWT_SECRET
# + the S3 root credentials; ADMIN_PASSWORD is hashed on first boot)
# 2. docker compose up --build
#
# S3 API + admin console are then served on http://localhost:9000
# (admin console at /admin).
services:
openbucket:
build:
context: .
dockerfile: Dockerfile
image: openbucket:local
restart: unless-stopped
ports:
- "9000:9000"
env_file:
- .env
environment:
# The image's data volume; overrides any DATA_DIR from .env.
DATA_DIR: /data
volumes:
- openbucket-data:/data
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:9000/api/admin/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
openbucket-data: