ci: add first draft of MySQL data schema

This commit is contained in:
David Bailey 2023-10-19 21:53:14 +02:00
parent 1862ccbbb6
commit 57d6d82be9
3 changed files with 60 additions and 5 deletions

View file

@ -9,11 +9,12 @@ services:
watch:
- path: ./
action: rebuild
- path: ../.
- path: ../www/
action: sync
target: /var/www/html
ignore:
- ../.git
- mysql_schema.sql
mysql:
build:
dockerfile: MysqlDockerfile
@ -23,7 +24,13 @@ services:
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- sqlvolume:/var/lib/mysql
ports:
- 3306:3306
develop:
watch:
- path: mysql_schema.sql
action: rebuild
# volumes:
# - sqlvolume:/var/lib/mysql
volumes:
sqlvolume: {}