forked from ton-connect/bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
58 lines (53 loc) · 1.29 KB
/
docker-compose.postgres.yml
File metadata and controls
58 lines (53 loc) · 1.29 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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: bridge
POSTGRES_USER: bridge_user
POSTGRES_PASSWORD: bridge_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bridge_user -d bridge"]
interval: 5s
timeout: 5s
retries: 5
networks:
- bridge_network
bridge:
build: .
environment:
PORT: 8081
POSTGRES_URI: "postgres://bridge_user:bridge_password@postgres:5432/bridge?sslmode=disable"
CORS_ENABLE: "true"
HEARTBEAT_INTERVAL: 10
RPS_LIMIT: 1000
CONNECTIONS_LIMIT: 200
depends_on:
postgres:
condition: service_healthy
networks:
- bridge_network
restart: unless-stopped
integration:
build:
context: .
dockerfile: Dockerfile.integration
container_name: bridge-integration
environment:
BRIDGE_URL: "http://bridge:8081/bridge"
depends_on:
bridge:
condition: service_started
networks:
- bridge_network
command: ["/bin/bash", "-c", "make test-bridge-sdk"]
# command: ["/bin/bash", "-c", "tail -f /dev/null"]
volumes:
postgres_data:
networks:
bridge_network:
driver: bridge