diff --git a/.dockerignore b/.dockerignore index 36d321e1..5340f2a3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,5 @@ * # Only include the skyd binary -!target/release/skyd \ No newline at end of file +!target/release/skyd +!examples/config-files/docker.toml \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 9862c6ff..eabe4699 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,9 @@ FROM debian:stable COPY target/release/skyd /usr/local/bin +RUN mkdir /etc/skytable +COPY examples/config-files/docker.toml /etc/skytable/skyd.toml -CMD ["skyd", "-h", "0.0.0.0", "-p", "2003"] +CMD ["skyd", "-c", "/etc/skytable/skyd.toml"] EXPOSE 2003/tcp diff --git a/examples/config-files/docker.toml b/examples/config-files/docker.toml new file mode 100644 index 00000000..ab04a542 --- /dev/null +++ b/examples/config-files/docker.toml @@ -0,0 +1,6 @@ +# this is the default configuration file for Docker images. Modify it as required +[server] +host = "127.0.0.1" +port = 2003 +noart = true +maxcon = 50000