-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-test.yaml
58 lines (55 loc) · 1.72 KB
/
docker-compose-test.yaml
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
version: "3"
services:
fishjam:
image: "ghcr.io/fishjam-dev/fishjam:${TAG:-edge}"
container_name: fishjam
restart: on-failure
healthcheck:
test: >
curl --fail -H "authorization: Bearer development" http://fishjam:5002/room || exit 1
interval: 3s
retries: 2
timeout: 2s
start_period: 30s
environment:
FJ_HOST: "fishjam:5002"
FJ_INTEGRATED_TURN_IP: "${INTEGRATED_TURN_IP:-127.0.0.1}"
FJ_INTEGRATED_TURN_LISTEN_IP: "0.0.0.0"
FJ_INTEGRATED_TURN_PORT_RANGE: "50000-50050"
FJ_INTEGRATED_TCP_TURN_PORT: "49999"
FJ_SERVER_API_TOKEN: "development"
FJ_PORT: 5002
FJ_SECRET_KEY_BASE: "super-secret-key"
FJ_SIP_IP: "127.0.0.1"
FJ_COMPONENTS_USED: rtsp file hls recording sip
ports:
- "5002:5002"
- "49999:49999"
- "50000-50050:50000-50050/udp"
volumes:
- ./tests/fixtures:/app/fishjam_resources/file_component_sources
test:
container_name: test
image: "cimg/python:${PYTHON_VERSION:-3.8}"
command: sh -c "cd /app && \ poetry config virtualenvs.in-project false && \ poetry install --no-ansi && \ poetry run pytest -s"
environment:
DOCKER_TEST: "TRUE"
ports:
- "5000:5000"
volumes:
- .:/app
depends_on:
fishjam:
condition: service_healthy
examples:
container_name: examples
image: "cimg/python:${PYTHON_VERSION:-3.8}"
command: sh -c "cd /app && \ poetry config virtualenvs.in-project false && \ poetry cache clear pypi --all && \ poetry install --no-ansi && \ poetry run examples"
environment:
DOCKER_TEST: "TRUE"
CI_LIMIT: "10"
volumes:
- .:/app
depends_on:
fishjam:
condition: service_healthy