-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.02 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:
db:
image: docker.io/library/postgres:18-trixie
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: boluo
TZ: UTC
volumes:
- postgres_data:/var/lib/postgresql
redis:
image: docker.io/library/redis
volumes:
- redis_data:/data
storage:
image: quay.io/minio/minio
restart: unless-stopped
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9090"
# Configure the object storage
storage-init:
image: quay.io/minio/mc
depends_on:
- storage
entrypoint: >
/bin/sh -c "
sleep 2;
until (/usr/bin/mc alias set dev http://storage:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}); do sleep 1; done;
/usr/bin/mc mb dev/boluo;
/usr/bin/mc anonymous set public dev/boluo;
exit 0;
"
volumes:
postgres_data:
redis_data:
minio_data: