-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 740 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (26 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
services:
dm-hero:
build:
context: .
dockerfile: Dockerfile
image: dm-hero:latest
container_name: dm-hero
ports:
- '4444:3000'
volumes:
# Persist SQLite database
- ./data:/app/data
# Persist uploaded images (note: .output/public/ path in container)
- ./public/uploads:/app/.output/public/uploads
environment:
# Nuxt runtime config
NODE_ENV: production
NITRO_PORT: 3000
NITRO_HOST: 0.0.0.0
restart: unless-stopped
healthcheck:
test: ['CMD', 'node', '-e', "require('http').get('http://localhost:3000/', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
interval: 30s
timeout: 10s
start_period: 40s
retries: 3