Updated Docker (markdown)

Karmaa
2025-03-16 14:19:47 -05:00
parent 8dc3d8a418
commit 3425979d19

@@ -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