forked from ton-connect/wallets-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
33 lines (31 loc) · 877 Bytes
/
docker-compose.test.yml
File metadata and controls
33 lines (31 loc) · 877 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
version: '3.8'
services:
ton-wallets:
image: ${IMAGE:-ton-wallets-local}
ports:
- "${TEST_PORT:-8088}:80"
healthcheck:
test: ["CMD", "curl", "-q", "http://127.0.0.1/wallets-v2.json"]
interval: 1s
timeout: 3s
retries: 5
start_period: 1s
test:
image: python:3.11-alpine
depends_on:
ton-wallets:
condition: service_healthy
volumes:
- ./tests/test_nginxcontainer.py:/test_nginxcontainer.py:ro
working_dir: /
environment:
- BASE_URL=http://ton-wallets
- EXPECTED_BASE_URL=https://${SERVER_NAME:-config.ton.org}/${ASSETS_PREFIX:-assets}
- ASSETS_PREFIX=${ASSETS_PREFIX:-assets}
- TIMEOUT=${TEST_TIMEOUT:-10}
- VERBOSE=${TEST_VERBOSE:-false}
command: >
sh -c "
pip install requests &&
python /test_nginxcontainer.py --verbose
"