Docker Update

This commit is contained in:
2026-01-26 14:06:31 +03:00
parent 243ef9e235
commit 934cb46128
6 changed files with 294 additions and 0 deletions

26
docker-compose.yml Normal file
View File

@ -0,0 +1,26 @@
version: '3.8'
services:
star-wars-game:
build:
context: .
dockerfile: Dockerfile
container_name: star-wars-hearthstone
ports:
- "3542:3542"
environment:
- NODE_ENV=production
- PORT=3542
restart: unless-stopped
networks:
- star-wars-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3542', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
star-wars-network:
driver: bridge