-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
67 lines (63 loc) · 1.53 KB
/
docker-compose.test.yml
File metadata and controls
67 lines (63 loc) · 1.53 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
59
60
61
62
63
64
65
66
67
# E2E test overrides — applied on top of docker-compose.yml.
# Usage: docker compose -f docker-compose.yml -f docker-compose.test.yml ...
# See Makefile E2E_COMPOSE for the full invocation.
services:
relays:
restart: "no"
env_file: !override
- .env.test
environment:
RELAYS: ibkr
IBKR_FLEX_TOKEN: test-flex-token
IBKR_FLEX_QUERY_ID: "000000"
API_TOKEN: test-token
API_PORT: "8000"
DEBUG_WEBHOOK_PATH: test-debug-path
NOTIFIERS: webhook
WEBHOOK_SECRET: test-webhook-secret
ports:
- "15011:8000"
volumes:
- ./services/relay_core:/app/relay_core
- ./services/relays:/app/relays
- ./services/shared:/app/shared
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')",
]
interval: 3s
timeout: 5s
retries: 20
start_period: 5s
debug:
restart: "no"
deploy:
replicas: 1
environment:
DEBUG_WEBHOOK_PATH: test-debug-path
ports:
- "15012:9000"
volumes:
- ./services/debug:/app
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:9000/health')",
]
interval: 3s
timeout: 5s
retries: 10
start_period: 3s
# Disable production-only services
caddy:
profiles: ["disabled"]
networks:
default:
name: relayport-test