-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.03 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
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: lanecheck
POSTGRES_PASSWORD: lanecheck
POSTGRES_DB: lanecheck
ports:
# 5433 on the host: a locally-installed postgres commonly owns 5432
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lanecheck"]
interval: 2s
timeout: 2s
retries: 15
redis:
image: redis:7
ports:
- "6379:6379"
minio:
image: minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: lanecheck
MINIO_ROOT_PASSWORD: lanecheck-secret
ports:
- "9000:9000"
- "9001:9001"
volumes:
- miniodata:/data
createbucket:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until mc alias set local http://minio:9000 lanecheck lanecheck-secret; do sleep 1; done;
mc mb --ignore-existing local/lanecheck-docs;
"
volumes:
pgdata:
miniodata: