mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Added migrations for mysql and postgres, added ci testing suites for them
This commit is contained in:
25
docker/docker-compose.ci.mysql.yml
Normal file
25
docker/docker-compose.ci.mysql.yml
Normal 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:
|
25
docker/docker-compose.ci.postgres.yml
Normal file
25
docker/docker-compose.ci.postgres.yml
Normal 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: 'postgres'
|
||||
NPM_DB_HOST: 'db-postgres'
|
||||
NPM_DB_PORT: '5432'
|
||||
NPM_DB_USERNAME: 'npm'
|
||||
NPM_DB_PASSWORD: 'npmpass'
|
||||
NPM_DB_NAME: 'npm'
|
||||
NPM_DB_SSLMODE: 'disable'
|
||||
|
||||
db-postgres:
|
||||
image: postgres:15
|
||||
environment:
|
||||
POSTGRES_USER: 'npm'
|
||||
POSTGRES_PASSWORD: 'npmpass'
|
||||
POSTGRES_DB: 'npm'
|
||||
volumes:
|
||||
- psql_vol:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
psql_vol:
|
@ -5,9 +5,10 @@ services:
|
||||
fullstack:
|
||||
image: ${IMAGE}:${BRANCH_LOWER}-ci-${BUILD_NUMBER}
|
||||
environment:
|
||||
- NPM_LOG_LEVEL=debug
|
||||
- NPM_LOG_FORMAT=json
|
||||
- NPM_DISABLE_IPV6=true
|
||||
NPM_DB_DRIVER: 'sqlite'
|
||||
NPM_LOG_LEVEL: 'debug'
|
||||
NPM_LOG_FORMAT: 'json'
|
||||
NPM_DISABLE_IPV6: 'true'
|
||||
volumes:
|
||||
- '/etc/localtime:/etc/localtime:ro'
|
||||
- npm_data_ci:/data
|
||||
|
Reference in New Issue
Block a user