forked from Liquifact/Liquifact-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
47 lines (43 loc) · 990 Bytes
/
Copy pathdocker-compose.e2e.yml
File metadata and controls
47 lines (43 loc) · 990 Bytes
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
version: '3.8'
services:
api:
build: .
ports:
- "3001:3001"
environment:
- NODE_ENV=development
- PORT=3001
- DATABASE_URL=postgresql://testuser:testpass@db:5432/liquifact_test
- JWT_SECRET=supersecret-test-token-key-32-chars-long
- SOROBAN_RPC_URL=http://mock-soroban:8000
depends_on:
db:
condition: service_healthy
mock-soroban:
condition: service_started
networks:
- e2e-net
db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpass
- POSTGRES_DB=liquifact_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testuser -d liquifact_test"]
interval: 5s
timeout: 5s
retries: 5
networks:
- e2e-net
mock-soroban:
build:
context: ./tests/mocks
dockerfile: Dockerfile.mock
ports:
- "8000:8000"
networks:
- e2e-net
networks:
e2e-net:
driver: bridge