[英]How to set up file docker-compose with mysql and tomcat in IDE Intelij?
我正在使用 Jsp / servlet 進行個人項目,因此它需要 tomcat 才能運行。 I created a compose docker file for mysql and I want to have tomcat inside the file and how to set it up in the IDE instead of downloading it from tomcat.apache.org and setting it up into the Intelij IDE. 你們能幫幫我嗎? 非常感謝!
version: '3'
services:
db_bookstore:
image: mysql:5.7
ports:
- 3210:3306
environment:
- MYSQL_ROOT_PASSWORD=654321
- MYSQL_DATABASE=bookstore
我假設你想在你的 Docker 中擁有 tomcat 服務,對吧?
version: '3'
services:
db_bookstore:
...
tomcat:
image: tomcat:9.0.12
ports:
- "80:8080"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.