24 lines
565 B
YAML
24 lines
565 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
linkding:
|
|
build: .
|
|
container_name: linkding
|
|
image: wirelos/linkding:latest
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- CHROME_EXECUTABLE_PATH=/usr/bin/chromium
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/links', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|
|
|