From 3425979d192605b45f58c1e5faef6272b7c39b7b Mon Sep 17 00:00:00 2001 From: Karmaa <88517757+LukeGus@users.noreply.github.com> Date: Sun, 16 Mar 2025 14:19:47 -0500 Subject: [PATCH] Updated Docker (markdown) --- Docker.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/Docker.md b/Docker.md index 3272b82..4123253 100644 --- a/Docker.md +++ b/Docker.md @@ -1,22 +1,35 @@ Docker Command Line ```sh +docker volume create mongodb-data +``` +```sh docker run -d \ - -p 8080:8080 \ - --name termix-app \ + --name termix \ --restart unless-stopped \ + -p 3800:8080 \ + -v mongodb-data:/data/db \ + -e SALT="2v.F7!6a!jIzmJsu|[)h61$ZMXs;,i+~" \ ghcr.io/lukegus/termix:latest ``` # Docker Compose ```yaml services: - app: + termix: image: ghcr.io/lukegus/termix:latest - container_name: termix-app + container_name: termix restart: unless-stopped ports: - - "8080:8080" # Port for nginx web-app (frontend) -# - "8081:8081" # Port for SSH WebSocket, does not need to be open (backend) + - "3800:8080" + volumes: + - mongodb-data:/data/db + environment: + # Generate random salt here https://www.lastpass.com/features/password-generator (max 32 characters, include all characters for settings) + SALT: "2v.F7!6a!jIzmJsu|[)h61$ZMXs;,i+~" + +volumes: + mongodb-data: + driver: local ``` to start the container, run ```sh