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