-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
57 lines (53 loc) · 1.28 KB
/
docker-compose.test.yml
File metadata and controls
57 lines (53 loc) · 1.28 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
version: '3.8'
services:
# Hot reload testing service
bws-test:
build:
context: .
dockerfile: Dockerfile.test
container_name: bws-hot-reload-test
ports:
- "8080:8080"
volumes:
# Mount test directory for live editing
- ./tests:/app/tests
- ./test-configs:/app/test-configs
# Mount logs for debugging
- ./docker-test-logs:/app/logs
- ./docker-test-run:/app/run
environment:
- RUST_LOG=debug
- BWS_TEST_MODE=true
# Override to run interactive testing
command: bash
stdin_open: true
tty: true
networks:
- bws-test
# Manual testing service (daemon mode)
bws-daemon-test:
build:
context: .
dockerfile: Dockerfile.test
container_name: bws-daemon-test
ports:
- "8081:8080"
volumes:
- ./tests:/app/tests
- ./test-configs:/app/test-configs
- ./docker-daemon-logs:/app/logs
- ./docker-daemon-run:/app/run
environment:
- RUST_LOG=info
- BWS_CONFIG=/app/test-configs/daemon-test.toml
# Start in daemon mode for manual testing
command: ["./bws", "--config", "/app/test-configs/daemon-test.toml"]
networks:
- bws-test
networks:
bws-test:
driver: bridge
volumes:
test-configs:
test-logs:
test-run: