🐳 Adding phpmyadmin as an option to manage database

This commit is contained in:
Ricardo Paes
2022-02-24 06:06:28 -03:00
parent f4892a8657
commit 393b2e66b4
3 changed files with 27 additions and 1 deletions

View File

@@ -21,4 +21,7 @@ FRONTEND_SERVER_NAME=myapp.mydomain.com
FRONTEND_URL=https://myapp.mydomain.com
# BROWSERLESS
MAX_CONCURRENT_SESSIONS=
MAX_CONCURRENT_SESSIONS=
# PHPMYADMIN
PMA_PORT=

View File

@@ -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:

View File

@@ -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