{"id":19450508,"url":"https://github.com/ymc-github/docker-ltmj","last_synced_at":"2026-05-06T03:31:46.282Z","repository":{"id":95798620,"uuid":"228083589","full_name":"YMC-GitHub/docker-ltmj","owner":"YMC-GitHub","description":"deploy ltmj(Linux+tomcat+mysql+java) using docker","archived":false,"fork":false,"pushed_at":"2019-12-16T01:54:01.000Z","size":163,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-05T01:41:29.644Z","etag":null,"topics":["dkc","docker","java","mysql","tomcat"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMC-GitHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-14T20:20:43.000Z","updated_at":"2021-06-14T10:29:21.000Z","dependencies_parsed_at":"2023-04-08T05:02:17.260Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/docker-ltmj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YMC-GitHub/docker-ltmj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fdocker-ltmj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fdocker-ltmj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fdocker-ltmj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fdocker-ltmj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/docker-ltmj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fdocker-ltmj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dkc","docker","java","mysql","tomcat"],"created_at":"2024-11-10T16:38:04.104Z","updated_at":"2026-05-06T03:31:46.259Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## background\n\nto standard and simple building and running java web in dev/pro env.\n## dependences\n\nsome important soflt need to be prepared:\n\n- [Git](https://git-scm.com/downloads)\n- [Docker](https://www.docker.com/products/docker/)\n- [Docker-Compose](https://docs.docker.com/compose/install/#install-compose)\n## database for mysql\n\n- `hostname: mysql`\n\nthe state will add a host resovle in the db cm `mysql`, in file  `/etc/hosts` with content `xxx.xx.xx.xx mysql`.\nit will map the address `http://mysql`  to the db cm  `mysql`,equals to `http://localhost` in  the db cm  `mysql`\n## data for persistence\n\nthe data in cm will destory when the cm is destory, you need to make volume maping from cm path to your pm path in  `docker-compose.yml`:\n\n- `/var/lib/mysql` the db cm `mysql` data file path must to mount to your  pm path\n- `/usr/local/tomcat/logs` the serve cm tomcat log file path .you can mount to  your pm path too\n- `/data` the db cm `redis` data file path\n- `/data/activemq` the db cm `activemq` data file path will map the address `http://mysql`  to the db cm  `mysql`,equals to `http://localhost` in  the db cm  `mysql`\n\n## project simple usage \n\nafter debuging the project,start with  `-d` arg to run in backgroud process.\nyou also can use  `docker-compose logs -f` to get start log.\n\n```sh\n# run in backgroud process\ndocker-compose up -d\n\n# get the start log\ndocker-compose logs -f\n```\n\n## some important solft for java web\n\n- **JAVA** ：`1.8`\n- **Tomcat** ：`8.5.41`\n- **maven** ：`maven:3.6.1-jdk-8` \n- **MySQL** ：`10.3.15`\n- **Redis** ：`5.0.7`\n- **ActiveMQ** ：`5.14.3`\n\n\nthe maven you can update it in init-conf.sh file.\nthe other solft version updated in `docker-compose.yml` file or `Dockerfile` file\n\n```yml\n# fetch from a remote image\n# image: redis:5.0.7\n# build image with a local config\n  build: ./redis\n```\n\nafter updating `docker-compose.yml` file or `Dockerfile` file,need to  rebuild image .you can run as below but not last:\n```sh\ndocker-compose up --build\n```\n\n## the project dir construtor\n\n```\njavaweb-compose/\n├── activemq\n│   ├── data  # pm data path mount to cm\n│   ├── Dockerfile   # the image conf file\n│   └── logs   # pm log path mount to cm\n├── docker-compose.yml  # docker-compose  conf file\n├── mysql\n│   ├── conf  # pm conf path mount to cm\n│   ├── data  # pm data path mount to cm\n│   └── Dockerfile   # the image conf file\n├── README.md\n├── redis\n│   ├── conf   # pm conf path mount to cm\n│   ├── data  # pm data path mount to cm\n│   └── Dockerfile\n└── tomcat\n    ├── conf    # pm conf path mount to cm\n    ├── Dockerfile   # image conf file\n    ├── logs   # pm log path mount to cm\n    └── webapps\n        └── ROOT   # tomcat default project ROOT dir\n……………\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fdocker-ltmj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fdocker-ltmj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fdocker-ltmj/lists"}