# docker-jar-launcher **Repository Path**: xunjang/docker-jar-runner ## Basic Information - **Project Name**: docker-jar-launcher - **Description**: docker-jar-launcher - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-19 - **Last Updated**: 2024-08-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: Docker, Java ## README # SpringDockerCompose #### 介绍 用于运行Spring等项目Jar包的Docker相关文件, 包含一个简易测试项目。 #### 使用说明 拉取项目 ```shell git clone https://gitee.com/xunjang/spring-docker-compose.git ``` 进入项目文件夹 ```shell cd spring-docker-compose ``` 制作镜像 ```shell docker build -t : . ``` 编辑docker compose启动文件 ```shell cp docker-compose-example.yml docker-compose.yml ``` 修改image为上面已制作镜像 ```yml image: : ``` 修改APPLICATION环境变量为需要启动的Jar包文件名 ```yml - MAIN_APPLICATION=.jar ``` docker compose插件启动方法 ```shell docker compose up ``` docker compose独立版启动方法 ```shell docker-compose up ```