Files
2025-11-08 03:08:25 +01:00

32 lines
809 B
YAML

services:
random-lol:
build:
context: .
dockerfile: Dockerfile
image: random-lol:latest
container_name: random-lol
restart: unless-stopped
ports:
- '4000:4000'
environment:
- NODE_ENV=production
- PORT=4000
healthcheck:
test:
[
'CMD',
'node',
'-e',
"require('http').get('http://localhost:4000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- random-lol-network
networks:
random-lol-network:
driver: bridge