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"