容器化配置
This commit is contained in:
parent
b4c2cec043
commit
bb6d583ef6
@ -1,5 +1,4 @@
|
|||||||
FROM amazoncorretto:21
|
FROM amazoncorretto:21
|
||||||
COPY . /usr/src/surl
|
COPY ./build/libs/surl-0.0.1-SNAPSHOT.jar /opt/pak/surl/pak.jar
|
||||||
WORKDIR /usr/src/surl
|
WORKDIR /opt/pak/surl
|
||||||
RUN chmod 754 ./gradlew && ./gradlew build -x test
|
CMD ["java", "-jar", "pak.jar"]
|
||||||
CMD ["java", "-jar", "./build/libs/surl-0.0.1-SNAPSHOT.jar"]
|
|
||||||
|
@ -7,7 +7,7 @@ services:
|
|||||||
image: surl
|
image: surl
|
||||||
restart: no
|
restart: no
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:1888:1888"
|
- "127.0.0.1:18888:18888"
|
||||||
networks:
|
networks:
|
||||||
- surl-network
|
- surl-network
|
||||||
environment:
|
environment:
|
||||||
@ -16,7 +16,7 @@ services:
|
|||||||
PORT: 18888
|
PORT: 18888
|
||||||
DB_HOST: postgres_forsurl
|
DB_HOST: postgres_forsurl
|
||||||
DB_PORT: 5432
|
DB_PORT: 5432
|
||||||
# DB_PASS: PASSWORD4DB
|
DB_PASS: PASSWORD4DB
|
||||||
REDIS_HOST: redis_forsurl
|
REDIS_HOST: redis_forsurl
|
||||||
# SECRET_KEY: ne09xhakcvoi13$>":<[].
|
# SECRET_KEY: ne09xhakcvoi13$>":<[].
|
||||||
redis_forsurl:
|
redis_forsurl:
|
||||||
@ -29,5 +29,5 @@ services:
|
|||||||
restart: no
|
restart: no
|
||||||
networks:
|
networks:
|
||||||
- surl-network
|
- surl-network
|
||||||
# environment:
|
environment:
|
||||||
# POSTGRES_PASSWORD: "PASSWORD4DB"
|
POSTGRES_PASSWORD: "PASSWORD4DB"
|
||||||
|
Loading…
Reference in New Issue
Block a user