Files
projects/Dockers/socket-broker/docker-compose.yml
T
Bram bf404135b5
Build and Push Docker Images / build-and-push (push) Failing after 1m39s
socket broker
2025-08-21 10:59:09 +02:00

36 lines
771 B
YAML

version: "3.8"
services:
socket-broker:
build: .
container_name: socket-broker
ports:
- "3000:3000" # WebSocket server
- "8080:8080" # HTTP API
environment:
- NODE_ENV=production
- WS_PORT=3000
- API_PORT=8080
- API_KEY=${API_KEY:-default-api-key-change-me}
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:8080/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- socket-broker-network
env_file:
- .env
networks:
socket-broker-network:
driver: bridge