Files
pnger/docker-compose.yml

29 lines
664 B
YAML
Raw Normal View History

version: '3.8'
services:
pnger:
build:
context: .
dockerfile: Dockerfile
container_name: pnger
image: pnger:latest
ports:
- "8080:3000"
environment:
- NODE_ENV=production
- PORT=3000
- MAX_FILE_SIZE=10
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
mem_limit: 512m
cpus: 1.0
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"