Skip to content

Commit

Permalink
build(docker): improve security
Browse files Browse the repository at this point in the history
The ports are not exposed to public by default.
  • Loading branch information
Liu233w authored and mergify[bot] committed Sep 29, 2023
1 parent d31e3fb commit 243533f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/template.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# == configuration for docker compose ==

# port for the main application
EXPOSE_PORT=3000
# port for the main application. It is better to use another load balancer for the endpoint. If you want to expose the port to public, remove the `127.0.0.1:` part and only keep the port number
EXPOSE_PORT=127.0.0.1:3000
# port for traefik dashboard. not recommended to expose to public
TRAEFIK_PORT=3001
TRAEFIK_PORT=127.0.0.1:3001

# docker repo name and tag. no need to modify this
DOCKER_REPO=
Expand Down

0 comments on commit 243533f

Please sign in to comment.