Skip to content

Commit

Permalink
🐳 Work about Docker. expose dockerfile port
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Nov 12, 2023
1 parent c43e614 commit b30e8f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ COPY ./pig_codegen.sql /docker-entrypoint-initdb.d
COPY ./pig_config.sql /docker-entrypoint-initdb.d

COPY ./pig_job.sql /docker-entrypoint-initdb.d

EXPOSE 3306
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
restart: always
ports:
- 8848:8848
- 9848:9848
container_name: pig-register
hostname: pig-register
image: pig-register
Expand Down
2 changes: 1 addition & 1 deletion pig-register/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG JAR_FILE=target/pig-register.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8848
EXPOSE 8848 9848

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

Expand Down

0 comments on commit b30e8f8

Please sign in to comment.