-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
44 lines (39 loc) · 877 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
44 lines (39 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
34
35
36
37
38
39
40
41
42
43
44
name: togetherness-test
services:
unit:
build:
context: .
dockerfile: docker/unit.Dockerfile
volumes:
- ./tests:/app/tests
stop_grace_period: 0s
signaling:
build:
context: .
dockerfile: docker/signaling.Dockerfile
stop_grace_period: 0s
app:
image: python:3.12-slim
ports:
- "80:80"
volumes:
- ./src:/app/
working_dir: /app
command: python -m http.server 80
depends_on:
- signaling
stop_grace_period: 0s
# Playwright e2e tests — runs after app + signaling are up
e2e:
build:
context: .
dockerfile: docker/e2e.Dockerfile
environment:
- APP_URL=http://app:80
- SIGNALING_URL=ws://signaling:4444
depends_on:
app:
condition: service_started
signaling:
condition: service_started
stop_grace_period: 0s