-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.25 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
x-base-backend: &base-backend
build:
context: .
dockerfile: Dockerfile.backend
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:JBNGlQ9wNFLlYWc2mG@postgres:5432/margin
API_PORT: 9999
API_HOST: 0.0.0.0
NETWORK: testnet-preview
CARDANOSCAN_API_KEY: ${CARDANOSCAN_API_KEY}
KUPO_HOST: http://dev-3.tail2feb3.ts.net:1442
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9999/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
services:
long-short-backend:
container_name: margin-api
<<: *base-backend
ports:
- "9999:9999"
command: ["pnpm", "--filter=long-short-backend", "start"]
postgres:
image: postgres:18
container_name: margin-postgres
restart: always
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: JBNGlQ9wNFLlYWc2mG
POSTGRES_DB: margin
command: ["-c", "max_connections=50"]
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres-data: {}