-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (40 loc) · 1.58 KB
/
compose.yaml
File metadata and controls
42 lines (40 loc) · 1.58 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
services:
minio:
image: "minio/minio:latest"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio-user
MINIO_ROOT_PASSWORD: minio-password
entrypoint: >
/bin/sh -c '
isAlive() { curl -sf http://127.0.0.1:9000/minio/health/live; } # check if Minio is alive
minio $$0 "$$@" --quiet & echo $$! > /tmp/minio.pid # start Minio in the background
while ! isAlive; do sleep 0.1; done # wait until Minio is alive
mc alias set minio http://127.0.0.1:9000 minio-user minio-password # setup Minio client
mc mb minio/sendou || true # create a test bucket
mc anonymous set public minio/sendou # make the test bucket public
kill -s INT $$(cat /tmp/minio.pid) && rm /tmp/minio.pid # stop Minio
while isAlive; do sleep 0.1; done # wait until Minio is stopped
exec minio $$0 "$$@" # start Minio in the foreground
'
volumes:
- ~/minio/data:/data
command: server /data --console-address ":9001"
skalop:
image: ghcr.io/sendou-ink/skalop:latest
ports:
- "5900:5900"
environment:
- REDIS_URL=${REDIS_URL}
- SKALOP_TOKEN=${SKALOP_TOKEN}
- SESSION_SECRET=${SESSION_SECRET}
- PORT=5900
- NODE_ENV=development
depends_on:
- redis
restart: unless-stopped
redis:
image: redis:alpine
restart: unless-stopped