36 lines
979 B
Plaintext
36 lines
979 B
Plaintext
name: nextchair-${BUSINESS_SLUG}
|
|
|
|
# Generated by scripts/create-business.sh. Keep this file self-contained so
|
|
# Dockge can operate this business independently.
|
|
|
|
services:
|
|
nextchair-${BUSINESS_SLUG}:
|
|
image: ${NEXTCHAIR_IMAGE:-nextchair:latest}
|
|
container_name: nextchair-${BUSINESS_SLUG}
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- nextchair-media-${BUSINESS_SLUG}:/app/storage/media
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', r => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 20s
|
|
networks:
|
|
- nextchair-proxy
|
|
- nextchair-db
|
|
|
|
volumes:
|
|
nextchair-media-${BUSINESS_SLUG}:
|
|
name: nextchair-media-${BUSINESS_SLUG}
|
|
|
|
networks:
|
|
nextchair-proxy:
|
|
name: nextchair-proxy
|
|
external: true
|
|
nextchair-db:
|
|
name: nextchair-db
|
|
external: true
|