Skip to content

Commit 42efedb

Browse files
committed
fix: api-service startup and mongodb connection string propagation
1 parent ffe5663 commit 42efedb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deploy/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ COPY --chown=lowcoder:lowcoder --from=build-api-service /lowcoder-server/distrib
4444
COPY --chown=lowcoder:lowcoder --from=build-api-service /lowcoder-server/distribution/target/lowcoder-api-service-bin/set-classpath.sh /lowcoder/api-service/set-classpath.sh
4545

4646
EXPOSE 8080
47-
CMD [ "sh" , "/lowcoder/api-service/entrypoint.sh" ]
47+
CMD [ "/bin/bash" , "/lowcoder/api-service/entrypoint.sh" ]
4848

4949
#############################################################################
5050

server/api-service/lowcoder-server/src/main/resources/application.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spring:
1111
mongodb:
1212
authentication-database: admin
1313
auto-index-creation: false
14+
uri: ${LOWCODER_MONGODB_URL:mongodb://localhost:27017/lowcoder?authSource=admin}
1415
redis:
1516
url: ${LOWCODER_REDIS_URL:redis://127.0.0.1:16379}
1617
main:

0 commit comments

Comments
 (0)