容器化配置
This commit is contained in:
parent
b4c2cec043
commit
bb6d583ef6
@ -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"]
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user