forked from UtilityProtocol/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (39 loc) · 1 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
version: "3.9"
services:
timescaledb:
image: timescale/timescaledb:2-pg16
environment:
POSTGRES_USER: utility
POSTGRES_PASSWORD: utility_secret
POSTGRES_DB: utility_backend
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./src/time_series/compress.sql:/docker-entrypoint-initdb.d/01-compress.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U utility -d utility_backend"]
interval: 10s
timeout: 5s
retries: 5
soroban-rpc:
image: stellar/soroban-rpc:latest
ports:
- "8000:8000"
environment:
SOROBAN_RPC_HOSTNAME: "0.0.0.0"
SOROBAN_RPC_PORT: "8000"
backend:
build: .
ports:
- "8443:8443"
environment:
RUST_LOG: info
DATABASE_URL: postgres://utility:utility_secret@timescaledb:5432/utility_backend
SOROBAN_RPC_URL: http://soroban-rpc:8000
depends_on:
timescaledb:
condition: service_healthy
restart: unless-stopped
volumes:
pgdata: