socket broker
Build and Push Docker Images / build-and-push (push) Failing after 1m39s

This commit is contained in:
2025-08-21 10:59:09 +02:00
parent 4470eb400a
commit bf404135b5
9 changed files with 2910 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
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