Files
opensourcepos/docker-compose.yml
Ollama 107ed2b65c feat: replace database.sql with initial migration for automatic schema setup (#4447)
- Create initial migration that loads schema on fresh installs only
- Database schema is now version-controlled via migrations
- Remove database.sql build task from gulpfile
- Simplify Docker setup - no longer need sqlscript container
- Update CI workflows to rely on migrations for schema setup
- Update INSTALL.md documentation for automatic schema creation

Migrations now handle the complete database lifecycle:
- Fresh install: Initial migration creates full schema
- Existing install: Skips initial schema, continues normally
- No manual database.sql import needed
2026-03-19 21:30:52 +00:00

25 lines
612 B
YAML

include:
- docker/docker-mysql.yml
services:
ospos:
image: jekkos/opensourcepos:master
restart: always
depends_on:
- mysql
ports:
- "80:80"
networks:
- app_net
volumes:
- uploads:/app/public/uploads
- logs:/app/writable/logs
environment:
- CI_ENVIRONMENT=production
- FORCE_HTTPS=false
- PHP_TIMEZONE=UTC
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
- MYSQL_HOST_NAME=mysql