docs: update default server ports

Ayman Bagabas created

Change summary

.nfpm/soft-serve.conf | 4 ++--
Dockerfile            | 6 ++++++
README.md             | 6 +++---
docker.md             | 8 ++++----
4 files changed, 15 insertions(+), 9 deletions(-)

Detailed changes

.nfpm/soft-serve.conf 🔗

@@ -2,8 +2,8 @@
 # Keys defined in `SOFT_SERVE_INITIAL_ADMIN_KEYS` will be merged with 
 # the `initial_admin_keys` from /var/lib/soft-serve/config.yaml.
 #
-#SOFT_SERVE_HTTP_LISTEN_ADDR=:8080
 #SOFT_SERVE_GIT_LISTEN_ADDR=:9418
+#SOFT_SERVE_HTTP_LISTEN_ADDR=:23232
 #SOFT_SERVE_SSH_LISTEN_ADDR=:23231
-#SOFT_SERVE_SSH_KEY_PATH=ssh/soft_serve_host
+#SOFT_SERVE_SSH_KEY_PATH=ssh/soft_serve_host_ed25519
 #SOFT_SERVE_INITIAL_ADMIN_KEYS='ssh-ed25519 AAAAC3NzaC1lZDI1...'

Dockerfile 🔗

@@ -16,6 +16,12 @@ ENV SOFT_SERVE_INITIAL_ADMIN_KEYS ""
 # Expose ports
 # SSH
 EXPOSE 23231/tcp
+# HTTP
+EXPOSE 23232/tcp
+# Stats
+EXPOSE 23233/tcp
+# Git
+EXPOSE 9418/tcp
 
 # Set the default command
 ENTRYPOINT [ "/usr/local/bin/soft", "serve" ]

README.md 🔗

@@ -171,7 +171,7 @@ git:
 # The HTTP server configuration.
 http:
   # The address on which the HTTP server will listen.
-  listen_addr: ":8080"
+  listen_addr: ":23232"
 
   # The path to the TLS private key.
   tls_key_path: ""
@@ -182,12 +182,12 @@ http:
   # The public URL of the HTTP server.
   # This is the address that will be used to clone repositories.
   # Make sure to use https:// if you are using TLS.
-  public_url: "http://localhost:8080"
+  public_url: "http://localhost:23232"
 
 # The stats server configuration.
 stats:
   # The address on which the stats server will listen.
-  listen_addr: ":8081"
+  listen_addr: ":23233"
 
 # Additional admin keys.
 #initial_admin_keys:

docker.md 🔗

@@ -15,9 +15,9 @@ docker run \
   --name=soft-serve \
   --volume /path/to/data:/soft-serve \
   --publish 23231:23231 \
+  --publish 23232:23232 \
+  --publish 23233:23233 \
   --publish 9418:9418 \
-  --publish 8080:8080 \
-  --publish 8081:8081 \
   --restart unless-stopped \
   charmcli/soft-serve:latest
 ```
@@ -35,9 +35,9 @@ services:
       - /path/to/data:/soft-serve
     ports:
       - 23231:23231
+      - 23232:23232
+      - 23233:23233
       - 9418:9418
-      - 8080:8080
-      - 8081:8081
     restart: unless-stopped
 ```