generated from bastian/boilerplate
30 lines
585 B
YAML
30 lines
585 B
YAML
services:
|
|
app:
|
|
image: internal-business-app:latest
|
|
build:
|
|
context: .
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- '3000:3000'
|
|
restart: unless-stopped
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|
|
healthcheck:
|
|
test:
|
|
[
|
|
'CMD',
|
|
'node',
|
|
'-e',
|
|
"fetch('http://127.0.0.1:3000/health/ready').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|