Files
serv_benchmark/docker-compose.yml
2025-12-20 03:47:10 +01:00

47 lines
1.0 KiB
YAML
Executable File

#version: "3.9"
services:
backend:
build: ./backend
container_name: linux_benchtools_backend
ports:
- "${BACKEND_PORT:-8007}:8007"
volumes:
- ./backend/data:/app/data
- ./uploads:/app/uploads
- ./backend/app:/app/app
environment:
- API_TOKEN=${API_TOKEN:-CHANGE_ME_GENERATE_RANDOM_TOKEN}
- DATABASE_URL=sqlite:////app/data/data.db
- UPLOAD_DIR=/app/uploads
restart: unless-stopped
networks:
- benchtools
frontend:
image: nginx:alpine
container_name: linux_benchtools_frontend
ports:
- "${FRONTEND_PORT:-8087}:80"
volumes:
- ./frontend:/usr/share/nginx/html:ro
- ./scripts/bench.sh:/usr/share/nginx/html/scripts/bench.sh:ro
restart: unless-stopped
networks:
- benchtools
iperf3:
image: networkstatic/iperf3
container_name: linux_benchtools_iperf3
command: ["-s"]
ports:
- "5201:5201/tcp"
- "5201:5201/udp"
restart: unless-stopped
networks:
- benchtools
networks:
benchtools:
driver: bridge