Files
opensourcepos/docker-compose.dev.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

55 lines
1.2 KiB
YAML

volumes:
uploads:
driver: local
logs:
driver: local
mysql:
driver: local
networks:
app_net:
services:
mysql:
image: mariadb:10.5
container_name: mysql
restart: always
expose:
- "3306"
networks:
- app_net
volumes:
- mysql:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=pointofsale
- MYSQL_DATABASE=ospos
- MYSQL_USER=admin
- MYSQL_PASSWORD=pointofsale
ospos:
build:
context: .
args:
- USERID=${USERID}
- GROUPID=${GROUPID}
target: ospos_dev
container_name: ospos_dev
restart: always
user: "${USERID}:${GROUPID}"
depends_on:
- mysql
ports:
- "80:80"
networks:
- app_net
volumes:
- .:/app
environment:
- CI_ENVIRONMENT=development
- MYSQL_USERNAME=admin
- MYSQL_PASSWORD=pointofsale
- MYSQL_DB_NAME=ospos
- MYSQL_HOST_NAME=mysql
- PHP_TIMEZONE=UTC
- XDEBUG_CONFIG=client_host=172.17.0.1