Docker Update
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user