forked from ndom91/sveltekasten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.storage.yml
58 lines (56 loc) · 1.59 KB
/
docker-compose.storage.yml
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
version: "3.8"
services:
minio:
image: minio/minio
command: server --console-address ":9001" /data
networks:
- briefkasten
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-AKIAIOSFODNN7EXAMPLE}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY}
- MINIO_BUCKET=${BUCKET_NAME:-briefkasten}
volumes:
- ./data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
mc:
image: minio/mc:latest
networks:
- briefkasten
depends_on:
- minio
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-AKIAIOSFODNN7EXAMPLE}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY}
- MINIO_BUCKET=${BUCKET_NAME:-briefkasten}
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set local http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb local/$${MINIO_BUCKET};
/usr/bin/mc anonymous set download local/$${MINIO_BUCKET};
"
database:
image: postgres:15
networks:
- briefkasten
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-briefkasten}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- database:/var/lib/postgresql/data
volumes:
database:
networks:
briefkasten: