-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-full.yml
More file actions
77 lines (72 loc) · 2.2 KB
/
Copy pathcompose-full.yml
File metadata and controls
77 lines (72 loc) · 2.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
server:
build:
context: ..
dockerfile: Dockerfile
ports:
- "127.0.0.1:${PROOFLINE_MAIN_PORT:-18080}:8080"
- "127.0.0.1:${PROOFLINE_ADMIN_PORT:-18081}:8081"
volumes:
- server-data:/var/lib/proofline
- ./smoke/proofline-full.toml:/etc/proofline/proofline.toml:ro
- ${PROOFLINE_SMOKE_SECRETS_DIR:-./smoke/secrets}:/run/proofline-secrets:ro
depends_on:
postgres:
condition: service_healthy
minio-init:
condition: service_completed_successfully
valkey:
condition: service_healthy
postgres:
image: postgres:18-alpine
environment:
POSTGRES_DB: proofline
POSTGRES_USER: proofline
POSTGRES_PASSWORD: proofline
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U proofline -d proofline"]
interval: 2s
timeout: 5s
retries: 30
minio:
image: quay.io/minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: proofline
MINIO_ROOT_PASSWORD: proofline-minio-password
volumes:
- minio-data:/data
minio-init:
image: quay.io/minio/mc:latest
depends_on:
minio:
condition: service_started
environment:
MINIO_ROOT_USER: proofline
MINIO_ROOT_PASSWORD: proofline-minio-password
MINIO_BUCKET: proofline-evidence
entrypoint: /bin/sh
command:
- -c
- |
set -eu
until mc alias set proofline http://minio:9000 "$${MINIO_ROOT_USER}" "$${MINIO_ROOT_PASSWORD}"; do
sleep 1
done
mc mb --ignore-existing "proofline/$${MINIO_BUCKET}"
valkey:
image: valkey/valkey:9-alpine
command: ["valkey-server", "--save", "", "--appendonly", "no", "--requirepass", "${PROOFLINE_SMOKE_VALKEY_PASSWORD:-proofline-valkey-password}"]
environment:
PROOFLINE_SMOKE_VALKEY_PASSWORD: ${PROOFLINE_SMOKE_VALKEY_PASSWORD:-proofline-valkey-password}
healthcheck:
test: ["CMD", "valkey-cli", "-a", "${PROOFLINE_SMOKE_VALKEY_PASSWORD:-proofline-valkey-password}", "ping"]
interval: 2s
timeout: 5s
retries: 30
volumes:
server-data:
postgres-data:
minio-data: