mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
🐳 Adding phpmyadmin as an option to manage database
This commit is contained in:
@@ -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=
|
||||
@@ -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:
|
||||
|
||||
15
docker-compose.phpmyadmin.yaml
Normal file
15
docker-compose.phpmyadmin.yaml
Normal 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
|
||||
Reference in New Issue
Block a user