mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
- Update docker-compose.yml to use latest image tag - Add DB_PATH environment variable for explicit database location - Configure bind mount for better data persistence in Coolify - Add VOLUME directive in Dockerfile for data directory - Ensure database survives container updates and restarts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
657 B
YAML
28 lines
657 B
YAML
services:
|
|
ap-pos:
|
|
image: marcogll/ap_pos:latest
|
|
container_name: ap-pos
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3111:3111"
|
|
environment:
|
|
NODE_ENV: production
|
|
SESSION_SECRET: ${SESSION_SECRET:-your-very-secret-key-change-it-in-production}
|
|
DB_PATH: /app/data/ap-pos.db
|
|
volumes:
|
|
- ap_pos_data:/app/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3111/login.html"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
ap_pos_data:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: ./data
|