-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.02 KB
/
docker-compose.yml
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
version: '3.8'
services:
app:
build: .
ports:
- '3001:3000'
environment:
DATABASE_URL: postgres://postgres:password@database:5432/myapp
JSON_RPC_URL: http://json-rpc-mock:8545
MOCK_API_URL: http://mock-api:3002
depends_on:
- database
- json-rpc-mock
- mock-api
database:
image: postgres:12.10
restart: always
hostname: ${POSTGRES_HOST}
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- '${POSTGRES_PORT}:${POSTGRES_PORT}'
volumes:
- ./db/data:/var/lib/postgresql/data
json-rpc-mock:
image: open-rpc/mock-server
volumes:
- ./test/mock-servers/json-rpc-mock:/data
ports:
- '8545:8545'
environment:
OPENRPC_MOCK_DATA_DIR: /data
mock-api:
image: mendhak/http-https-echo
volumes:
- ./test/mock-servers/mock-api:/data
ports:
- '3002:80'
environment:
MOCK_DATA_DIR: /data
volumes:
db: