-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-test.yaml
More file actions
75 lines (71 loc) · 1.81 KB
/
docker-compose-test.yaml
File metadata and controls
75 lines (71 loc) · 1.81 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
68
69
70
71
72
73
74
75
services:
fishjam:
image: ghcr.io/fishjam-cloud/fishjam:edge
container_name: fishjam
restart: on-failure
healthcheck:
test: >
curl --fail-with-body -H "Authorization: Bearer admin"
http://fishjam:5002/admin/health || exit 1
interval: 3s
retries: 2
timeout: 2s
start_period: 30s
environment:
FJ_HOST: "fishjam:5002"
FJ_ADMIN_TOKEN: "admin"
FJ_PORT: 5002
FJ_TEST_USER_TOKEN: "development"
FJ_CHECK_ORIGIN: "false"
# Fisthank
FJ_FISHTANK_TOKEN: "foo"
FJ_FISHTANK_ADDRESS: fishtank:50051
# Broadcaster
FJ_BROADCASTING_ENABLED: "true"
FJ_BROADCASTER_URL: "http://broadcaster:4000"
FJ_BROADCASTER_TOKEN: "broadcaster_token"
FJ_BROADCASTER_WHIP_TOKEN: "whip_token"
# Dev
LOG_LEVEL: "debug"
ports:
- "5002:5002"
fishtank:
image: ghcr.io/fishjam-cloud/fishtank:edge
container_name: fishtank
restart: on-failure
environment:
FT_FISHJAM_NOTIFICATIONS_ENDPOINT: http://fishjam:5002/notifications/fishtank
FT_FISHJAM_TOKEN: "foo"
FT_STRUCTURED_LOGGING: true
healthcheck:
interval: 3s
retries: 2
timeout: 2s
start_period: 30s
ports:
- "8080:8080"
caddy:
image: caddy
container_name: proxy
restart: unless-stopped
ports:
- 5555:5555
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
test:
container_name: test
build:
context: .
dockerfile: tests/Dockerfile
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3.11}
command: uv run pytest -s -vv
environment:
DOCKER_TEST: "TRUE"
depends_on:
fishtank:
condition: service_healthy
fishjam:
condition: service_healthy
caddy:
condition: service_started