Updated Docker (markdown)
+19
-6
@@ -1,22 +1,35 @@
|
|||||||
Docker Command Line
|
Docker Command Line
|
||||||
```sh
|
```sh
|
||||||
|
docker volume create mongodb-data
|
||||||
|
```
|
||||||
|
```sh
|
||||||
docker run -d \
|
docker run -d \
|
||||||
-p 8080:8080 \
|
--name termix \
|
||||||
--name termix-app \
|
|
||||||
--restart unless-stopped \
|
--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
|
ghcr.io/lukegus/termix:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
# Docker Compose
|
# Docker Compose
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
app:
|
termix:
|
||||||
image: ghcr.io/lukegus/termix:latest
|
image: ghcr.io/lukegus/termix:latest
|
||||||
container_name: termix-app
|
container_name: termix
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080" # Port for nginx web-app (frontend)
|
- "3800:8080"
|
||||||
# - "8081:8081" # Port for SSH WebSocket, does not need to be open (backend)
|
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
|
to start the container, run
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user