Mariadb Tomcat Docker environment

This is a docker-compose yml,Integrated Mariadb、phpMyAdmin、tomcat Docker

How to start

  • install docker-ce and docker-compose
  • change to project directory to build and run docker
    sudo docker-compose up -d --build
  • use phpMyAdmin restore database (options)
  • build project war file and put to tomcat-webapps directory
  • browse http://yourip:8080/warFileName

docker information

  • mariadb:latest
  • phpmyadmin/phpmyadmin:latest
  • tomcat:8.5.49-jkd8-openjdk

default information

  • tomcat manager account and password admin / mypassword112233
  • mariadb root default password myadmin123
  • phpMyAdmin default port 8088
  • tomcat default port 8080 ;AJP port 8009
  • tomcat workspace is tomcat-webapps
Read More

docker佈署Postgresql and PgAdmin

修改 khezen/compose-postgres

如果需要程式php或java可以考慮把postgresql 5432對外或是另外建一個docker link到postgres網路

系統需求

docker >= 17.12.0+
docker-compose

Github

https://github.com/catyku/postgresql-pgadmin

布署方式

git clonse https://github.com/catyku/postgresql-pgadmin
cd postgresql-pgadmin
sudo docker-compose -d up

可以由sudo docker ps -a 看到postgresql 及pgadmin二個container已經在執行中

Read More