diff --git a/Dockerfile b/Dockerfile index 62df6521619a7a35618bba55a6579e47b4409e43..eb1598069f7353008511751c5f9d595bef1afcb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,8 +34,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ # user:group is nonroot:nonroot, uid:gid = 65532:65532 FROM gcr.io/distroless/static@sha256:23aa732bba4c8618c0d97c26a72a32997363d591807b0d4c31b0bbc8a774bddf -VOLUME /mainnetdb - EXPOSE 14666/tcp EXPOSE 14626/udp @@ -44,4 +42,4 @@ COPY --from=build /go/bin/goshimmer /run/goshimmer # Copy the default config COPY config.default.json /config.json -ENTRYPOINT ["/run/goshimmer", "--config-dir=/", "--database.directory=/mainnetdb"] +ENTRYPOINT ["/run/goshimmer", "--config-dir=/", "--database.directory=/tmp/mainnetdb"] diff --git a/docker-compose.yml b/docker-compose.yml index 42affc44a75af0bfe92eef90cdba5415b34e9496..9b63d4341f3a4551679c9ce56ab98ba4fa8ba51f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: # 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 + - ./mainnetdb/:/tmp/mainnetdb/:rw #- ./config.json:/config.json:ro # Expose ports: # gossip: - "14666:14666/tcp"