Skip to content

Commit

Permalink
chore(docker)!: fix and document ports (#239)
Browse files Browse the repository at this point in the history
* Fixes

* Fix comments in `Dockerfile`

* Move to Hornet `alpha18`

Co-authored-by: Jochen Görtler <jochen.goertler@iota.org>
  • Loading branch information
Alex6323 and grtlr authored Jun 10, 2022
1 parent 3945e52 commit 9c68717
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ RUN cargo build --release --bin inx-chronicle
# using distroless cc "nonroot" image, which includes everything in the base image (glibc, libssl and openssl)
FROM gcr.io/distroless/cc-debian11:nonroot AS runtime

EXPOSE 9092/tcp
# REST API
EXPOSE 8042/tcp
# Metrics
EXPOSE 9100/tcp

COPY --chown=nonroot:nonroot --from=builder /inx-chronicle/target/release/inx-chronicle /app/inx-chronicle

Expand Down
1 change: 0 additions & 1 deletion docker/config.hornet.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
"/api/v2/transactions*",
"/api/v2/milestones*",
"/api/v2/outputs*",
"/api/v2/addresses*",
"/api/v2/treasury",
"/api/v2/receipts*",
"/api/plugins/debug/v1/*",
Expand Down
16 changes: 9 additions & 7 deletions docker/docker-compose.hornet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ services:
dockerfile: docker/Dockerfile
image: inx-chronicle:dev
ports:
- "9092:9092/tcp"
- "8042:8042/tcp" # REST API
- "9100:9100/tcp" # Metrics
environment:
- RUST_LOG=warn,inx_chronicle=debug
tty: true
Expand All @@ -23,19 +24,20 @@ services:
- "mongodb://mongo:27017"

hornet:
image: gohornet/hornet:2.0.0-alpha14
image: iotaledger/hornet:2.0.0-alpha18
ulimits:
nofile:
soft: 8192
hard: 8192
stop_grace_period: 5m
ports:
- "15600:15600/tcp"
- "14626:14626/udp"
- "15600:15600/tcp" # Gossip
- "14626:14626/udp" # Autopeering
- "14265:14265/tcp" # REST API
- "8081:8081/tcp"
- "8091:8091/tcp"
- "9311:9311/tcp"
- "8081:8081/tcp" # Dashboard
- "8091:8091/tcp" # Faucet
- "9311:9311/tcp" # Prometheus
- "9029:9029/tcp" # INX
cap_drop:
- ALL
volumes:
Expand Down

0 comments on commit 9c68717

Please sign in to comment.