From 679a9c75f254483ed547293a833de2ea7b635e3f Mon Sep 17 00:00:00 2001 From: Angelo Capossele <angelocapossele@gmail.com> Date: Mon, 16 Mar 2020 18:55:32 +0000 Subject: [PATCH] Fix: docker stuff (#296) * :whale: fixes Dockerfile and docker-compose.yml * :whale: improves docker-compose * :wrench: restores config.json * :wrench: removes config.default.json --- Dockerfile | 4 ++-- docker-compose.yml | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 89d34179..2f920cee 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 564c10f3..42affc44 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" -- GitLab