Browse Source

config:docker

dev-minio
dashan 1 year ago
parent
commit
df5d901103
  1. 2
      docker/deploy.sh
  2. 6
      docker/docker-compose.yml
  3. 2
      docker/ds/gateway/Dockerfile
  4. 2
      docker/ds/modules/miniapps/Dockerfile

2
docker/deploy.sh

@ -31,7 +31,7 @@ base(){
} }
# 停止基础环境 # 停止基础环境
stopbase(){ stopbase(){
docker-compose rm ds-nacos docker-compose stop ds-nacos
} }
# 删除基础环境 # 删除基础环境
rmbase(){ rmbase(){

6
docker/docker-compose.yml

@ -88,18 +88,18 @@ services:
container_name: ds-gateway container_name: ds-gateway
build: build:
context: ./ds/gateway context: ./ds/gateway
dockerfile: dockerfile dockerfile: Dockerfile
ports: ports:
- "8080:8080" - "8080:8080"
depends_on: depends_on:
- ds-nacos - ds-nacos
networks: networks:
- ds-network - ds-network
ds-miniappss: ds-miniapps:
container_name: ds-miniapps container_name: ds-miniapps
build: build:
context: ./ds/modules/miniapps context: ./ds/modules/miniapps
dockerfile: dockerfile dockerfile: Dockerfile
ports: ports:
- "15101:15101" - "15101:15101"
depends_on: depends_on:

2
docker/ds/gateway/Dockerfile

@ -1,5 +1,5 @@
#基础镜像 #基础镜像
FROM openjdk:17-jre FROM openjdk:17
# author # author
MAINTAINER dashan MAINTAINER dashan
# 挂载目录 # 挂载目录

2
docker/ds/modules/miniapps/Dockerfile

@ -1,5 +1,5 @@
#基础镜像 #基础镜像
FROM openjdk:17-jre FROM openjdk:17
# author # author
MAINTAINER dashan MAINTAINER dashan
# 挂载目录 # 挂载目录

Loading…
Cancel
Save