Skip to content

Commit 1e424ed

Browse files
authored
Merge pull request #840 from openmina/fix/docker-expose-ports
fix: Expose p2p port in docker
2 parents 6873a2d + d75087b commit 1e424ed

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ COPY --from=build /openmina/target/release/openmina /usr/local/bin/
1717
COPY --from=build /openmina/target/release/openmina-node-testing /usr/local/bin/
1818
RUN mkdir -p /usr/local/lib/openmina/circuit-blobs
1919
COPY --from=build /openmina/circuit-blobs/ /usr/local/lib/openmina/circuit-blobs/
20+
21+
EXPOSE 3000
22+
EXPOSE 8302
23+
2024
ENTRYPOINT [ "openmina" ]

docker-compose.block-producer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
sh -c "openmina node --producer-key /root/.openmina/producer-key $${COINBASE_RECEIVER:+--coinbase-receiver $$COINBASE_RECEIVER}"
66
ports:
77
- "3000:3000"
8+
- "8302:8302"
89
volumes:
910
- ./openmina-workdir:/root/.openmina:rw
1011
environment:

docker-compose.dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
command: [ "node" ]
77
ports:
88
- "3000:3000"
9+
- "8302:8302"
910
networks:
1011
- app-network
1112

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
command: [ "node" ]
55
ports:
66
- "3000:3000"
7+
- "8302:8302"
78

89
frontend:
910
image: openmina/frontend:${OPENMINA_FRONTEND_TAG:-latest}

0 commit comments

Comments
 (0)