mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-02 14:24:27 -04:00
- 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
29 lines
530 B
YAML
29 lines
530 B
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
|