Skip to content
Snippets Groups Projects
Unverified Commit 679a9c75 authored by Angelo Capossele's avatar Angelo Capossele Committed by GitHub
Browse files

Fix: docker stuff (#296)

* :whale: fixes Dockerfile and docker-compose.yml

* :whale: improves docker-compose

* :wrench: restores config.json

* :wrench: removes config.default.json
parent 9aaf2d45
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,6 @@ EXPOSE 14626/udp
# Copy the Pre-built binary file from the previous stage
COPY --from=build /go/bin/goshimmer /run/goshimmer
# Copy the default config
COPY config.default.json config.json
COPY config.json /config.json
ENTRYPOINT ["/run/goshimmer", "--database.directory=/mainnetdb"]
ENTRYPOINT ["/run/goshimmer", "--config-dir=/", "--database.directory=/mainnetdb"]
......@@ -10,9 +10,21 @@ services:
dockerfile: Dockerfile
container_name: iota_goshimmer
restart: unless-stopped
# Mount volumes:
# make sure to give read/write access to the folder ./mainnetdb (e.g., chmod -R 777 ./mainnetdb)
# optionally, you can mount a config.json into the container
volumes:
- ./mainnetdb/:/mainnetdb/:rw
#- ./config.json:/config.json:ro
# Expose ports:
# gossip: - "14666:14666/tcp"
# autopeering: - "14626:14626/udp"
# webAPI: - "8080:8080/tcp"
# dashboard: - "8081:8081/tcp"
# graph: - "8082:8082/tcp"
ports:
- "14666:14666/tcp"
- "14626:14626/udp"
- "14626:14626/tcp"
#- "8080:8080/tcp"
#- "8081:8081/tcp"
#- "8082:8082/tcp"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment