version: '3.8'
services:
bws-test:
build:
context: .
dockerfile: Dockerfile.test
container_name: bws-hot-reload-test
ports:
- "8080:8080"
volumes:
- ./tests:/app/tests
- ./test-configs:/app/test-configs
- ./docker-test-logs:/app/logs
- ./docker-test-run:/app/run
environment:
- RUST_LOG=debug
- BWS_TEST_MODE=true
command: bash
stdin_open: true
tty: true
networks:
- bws-test
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
command: ["./bws", "--config", "/app/test-configs/daemon-test.toml"]
networks:
- bws-test
networks:
bws-test:
driver: bridge
volumes:
test-configs:
test-logs:
test-run: