Updated Docker (markdown)
25
Docker.md
25
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
|
||||
|
||||
Reference in New Issue
Block a user