From bb6d583ef66a6c7d935ac2680f5c06123f3599a0 Mon Sep 17 00:00:00 2001 From: 05412 <2738076308@qq.com> Date: Wed, 24 Jul 2024 09:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E5=99=A8=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++---- docker-compose.yml | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 061d0e6..17e1b4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM amazoncorretto:21 -COPY . /usr/src/surl -WORKDIR /usr/src/surl -RUN chmod 754 ./gradlew && ./gradlew build -x test -CMD ["java", "-jar", "./build/libs/surl-0.0.1-SNAPSHOT.jar"] +COPY ./build/libs/surl-0.0.1-SNAPSHOT.jar /opt/pak/surl/pak.jar +WORKDIR /opt/pak/surl +CMD ["java", "-jar", "pak.jar"] diff --git a/docker-compose.yml b/docker-compose.yml index d036612..15985d0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: image: surl restart: no ports: - - "127.0.0.1:1888:1888" + - "127.0.0.1:18888:18888" networks: - surl-network environment: @@ -16,7 +16,7 @@ services: PORT: 18888 DB_HOST: postgres_forsurl DB_PORT: 5432 -# DB_PASS: PASSWORD4DB + DB_PASS: PASSWORD4DB REDIS_HOST: redis_forsurl # SECRET_KEY: ne09xhakcvoi13$>":<[]. redis_forsurl: @@ -29,5 +29,5 @@ services: restart: no networks: - surl-network -# environment: -# POSTGRES_PASSWORD: "PASSWORD4DB" + environment: + POSTGRES_PASSWORD: "PASSWORD4DB"