-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (84 loc) · 2.93 KB
/
docker-compose.yml
File metadata and controls
91 lines (84 loc) · 2.93 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
x-healthcheck: &healthcheck
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
x-python-env: &python-env
PYTHONUNBUFFERED: 1
PYTHONIOENCODING: UTF-8
services:
api:
restart: unless-stopped
build:
context: .
ports:
- "9002:9000"
environment:
- DB_URL=jdbc:postgresql://postgres-indexer:5432/postgres?currentSchema=indexer
- DB_USER=postgres
- DB_PASSWORD=postgres
- REEVE_SCRIPT_PATH=/app/plutus.json
- KERI_ENABLED=${KERI_ENABLED:-true}
- KERI_BOOT_URL=${KERI_BOOT_URL:-http://keria:3903}
- KERI_URL=${KERI_URL:-http://keria:3901}
- KERI_OOBIS=${KERI_OOBIS:-}
- STORE_CARDANO_SYNC_START_SLOT=${STORE_CARDANO_SYNC_START_SLOT:-159983856}
- STORE_CARDANO_SYNC_START_BLOCKHASH=${STORE_CARDANO_SYNC_START_BLOCKHASH:-739cbc4d7ae7a15805ce2ede010b3a24c6d2e18489e3940731822f9f5488d670}
depends_on:
- postgres
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-http.entrypoints=web"
- "traefik.http.routers.backend-http.rule=Host(`${API_HOSTNAME:-api.example.com}`)"
- "traefik.http.routers.backend-https.rule=Host(`${API_HOSTNAME:-api.example.com}`)"
- "traefik.http.routers.backend-https.entrypoints=websecure"
- "traefik.http.routers.backend-https.tls=true"
- "traefik.http.middlewares.https-redirect.headers.customrequestheaders.X-Forwarded-Proto=https"
frontend:
restart: unless-stopped
build:
context: frontend
ports:
- "3002:80"
environment:
PORT: "3002"
VITE_API_URL: ${VITE_API_URL:-http://localhost:9002}
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend-http.entrypoints=web"
- "traefik.http.routers.frontend-http.rule=Host(`${FRONTEND_HOSTNAME:-example.com}`)"
- "traefik.http.routers.frontend-https.rule=Host(`${FRONTEND_HOSTNAME:-example.com}`)"
- "traefik.http.routers.frontend-https.entrypoints=websecure"
- "traefik.http.routers.frontend-https.tls=true"
- "traefik.http.middlewares.https-redirect.headers.customrequestheaders.X-Forwarded-Proto=https"
postgres:
restart: unless-stopped
image: postgres:17
hostname: postgres-indexer
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "15432:5432"
keria:
image: ${KERIA_IMAGE:-docker.io/cardanofoundation/cf-idw-keria}:${KERIA_IMAGE_TAG:-c6498308}
restart: unless-stopped
environment:
KERI_AGENT_CORS: 1
<<: *python-env
volumes:
- ./keri-config/keria.json:/keria/config/keri/cf/keria.json
command: start --config-dir /keria/config --config-file keria.json --name agent
healthcheck:
test: wget --spider http://keria:3902/spec.yaml
<<: *healthcheck
ports:
- 3901:3901
- 3902:3902
- 3903:3903
volumes:
postgres-data:
yaci-data: