-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (102 loc) · 2.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
108 lines (102 loc) · 2.92 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.9"
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
# Dev-only default credentials — postgres:16-alpine refuses to start
# without POSTGRES_PASSWORD. Override via a .env file for anything
# beyond local development.
POSTGRES_USER: ${POSTGRES_USER:-linkora}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-linkora}
POSTGRES_DB: ${POSTGRES_DB:-linkora}
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- database
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-linkora}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
indexer:
build:
context: ./services/indexer
restart: unless-stopped
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-linkora}:${POSTGRES_PASSWORD:-linkora}@postgres:5432/${POSTGRES_DB:-linkora}
STELLAR_RPC_URL: ${STELLAR_RPC_URL:-https://soroban-testnet.stellar.org}
CONTRACT_ID: ${CONTRACT_ID:-}
START_LEDGER: ${START_LEDGER:-0}
PORT: 3000
ports:
- "3000:3000"
networks:
- backend
- database
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health/ready"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
dm-relay:
build:
context: ./services/dm-relay
restart: unless-stopped
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-linkora}:${POSTGRES_PASSWORD:-linkora}@postgres:5432/${POSTGRES_DB:-linkora}_dm_relay
PORT: 3001
STELLAR_NETWORK: ${STELLAR_NETWORK:-Testnet}
ports:
- "3001:3001"
networks:
- backend
- database
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health/ready"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
analytics-oracle:
build:
context: ./services/analytics-oracle
restart: unless-stopped
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-linkora}:${POSTGRES_PASSWORD:-linkora}@postgres:5432/${POSTGRES_DB:-linkora}
SOROBAN_RPC_URL: ${STELLAR_RPC_URL:-https://soroban-testnet.stellar.org}
CONTRACT_ID: ${CONTRACT_ID:-}
ORACLE_PRIVATE_KEY_HEX: ${ORACLE_PRIVATE_KEY_HEX:-}
ORACLE_NAME: ${ORACLE_NAME:-default}
WINDOW_LEDGERS: ${WINDOW_LEDGERS:-1000}
PORT: 4000
ports:
- "4000:4000"
networks:
- backend
- database
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health/ready"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
frontend:
backend:
database:
volumes:
postgres_data: