diff --git a/.env.example b/.env.example index 033e99f..375088a 100644 --- a/.env.example +++ b/.env.example @@ -21,4 +21,7 @@ FRONTEND_SERVER_NAME=myapp.mydomain.com FRONTEND_URL=https://myapp.mydomain.com # BROWSERLESS -MAX_CONCURRENT_SESSIONS= \ No newline at end of file +MAX_CONCURRENT_SESSIONS= + +# PHPMYADMIN +PMA_PORT= \ No newline at end of file diff --git a/README.md b/README.md index a472776..b43c0cc 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,10 @@ docker run --name whaticketdb -e MYSQL_ROOT_PASSWORD=strongpassword -e MYSQL_DAT # Or run using `docker-compose` as below # Before copy .env.example to .env first and set the variables in the file. docker-compose up -d mysql + +# To administer this mysql database easily using phpmyadmin. +# It will run by default on port 9000, but can be changed in .env using `PMA_PORT` +docker-compose -f docker-compose.phpmyadmin.yaml up -d ``` Install puppeteer dependencies: @@ -179,6 +183,10 @@ docker run --name whaticketdb -e MYSQL_ROOT_PASSWORD=strongpassword -e MYSQL_DAT # Or run using `docker-compose` as below # Before copy .env.example to .env first and set the variables in the file. docker-compose up -d mysql + +# To administer this mysql database easily using phpmyadmin. +# It will run by default on port 9000, but can be changed in .env using `PMA_PORT` +docker-compose -f docker-compose.phpmyadmin.yaml up -d ``` Clone this repository: diff --git a/docker-compose.phpmyadmin.yaml b/docker-compose.phpmyadmin.yaml new file mode 100644 index 0000000..2ee6ec3 --- /dev/null +++ b/docker-compose.phpmyadmin.yaml @@ -0,0 +1,15 @@ +version: '3' + +networks: + whaticket: + +services: + + phpmyadmin: + image: phpmyadmin/phpmyadmin:latest + environment: + - PMA_HOSTS=mysql + ports: + - ${PMA_PORT:-9000}:80 + networks: + - whaticket \ No newline at end of file