-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (55 loc) · 1.4 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
50
51
52
53
54
55
56
57
version: "3.8"
services:
deposit-function:
build: .
environment:
- COINBASE_API_BASE_URL=http://mock-server:3001
- COINBASE_API_KEY=${COINBASE_API_KEY}
- COINBASE_SECRET_KEY=${COINBASE_SECRET_KEY}
- LOGGING_LEVEL=DEBUG
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
volumes:
- .:/func
container_name: deposit-function
command:
[
"functions-framework",
"--target=coinbase_deposit",
"--signature-type=event",
"--debug",
]
ports:
- "8081:8080"
depends_on:
- mock-server
orders-function:
build: .
environment:
- COINBASE_API_BASE_URL=http://mock-server:3001
- COINBASE_API_KEY=${COINBASE_API_KEY}
- COINBASE_SECRET_KEY=${COINBASE_SECRET_KEY}
- LOGGING_LEVEL=DEBUG
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
volumes:
- .:/func
container_name: orders-function
command:
[
"functions-framework",
"--target=coinbase_orders",
"--signature-type=event",
"--debug",
]
ports:
- "8082:8080"
depends_on:
- mock-server
mock-server:
image: mockoon/cli:6.1.0
command: ["--data", "data", "--port", "3001"]
volumes:
- ./mock_servers/coinbase/environment.json:/data:readonly
ports:
- "3001:3000"