diff --git a/Dockerfile b/Dockerfile index 89d34179b8e1272d9c57bd7c9881807e729abceb..2f920cee5f951cf0e13a0ff2e3778c664dfea38b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 564c10f3358bf539547c954cbef3bf8a8ed56814..42affc44a75af0bfe92eef90cdba5415b34e9496 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"