Skip to content

Commit af21cd6

Browse files
committed
allow mysql host to be changed
1 parent 7f08d28 commit af21cd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/docker/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ FROM livingatlases/java-11-base:1.0.0
77
ARG APP_ARTIFACT=collectory
88
ARG USER=collectory
99
ARG WAR_FILE=./build/libs/collectory-*.war
10-
ARG DOCKERIZE_ARGS="-wait tcp://living-atlas-collectory-mysql:3306 -timeout 120s"
10+
ENV MYSQL_HOST=collectory-mysql
11+
ARG DOCKERIZE_ARGS="-wait tcp://$MYSQL_HOST:3306 -timeout 120s"
1112

1213
# Env variables
1314
ENV SERVER_PORT="8080"

0 commit comments

Comments
 (0)