Added migrations for mysql and postgres, added ci testing suites for them

This commit is contained in:
Jamie Curnow
2023-05-30 13:26:46 +10:00
parent e0773b1c06
commit 3c1b4fdf34
13 changed files with 1266 additions and 41 deletions

View File

@ -0,0 +1,25 @@
# WARNING: This is a CI docker-compose file used for building and testing of the entire app, it should not be used for production.
version: '3.8'
services:
fullstack:
environment:
NPM_DB_DRIVER: 'mysql'
NPM_DB_HOST: 'db-mysql'
NPM_DB_PORT: '3306'
NPM_DB_USERNAME: 'npm'
NPM_DB_PASSWORD: 'npmpass'
NPM_DB_NAME: 'npm'
db-mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npmpass'
volumes:
- mysql_vol:/var/lib/mysql
volumes:
mysql_vol: