mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-08 09:33:59 +00:00
feat: support docker compose deployment (#18)
This commit is contained in:
parent
4a50248fbc
commit
78282dab4d
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
||||
version: '3'
|
||||
services:
|
||||
slash:
|
||||
image: yourselfhosted/slash:latest
|
||||
container_name: slash
|
||||
ports:
|
||||
- 5231:5231
|
||||
volumes:
|
||||
- slash:/var/opt/slash
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
slash:
|
@ -37,3 +37,28 @@ docker pull yourselfhosted/slash:latest
|
||||
```
|
||||
|
||||
Finally, restart Slash by following the steps in [Docker Run](#docker-run).
|
||||
|
||||
# Self-hosting Slash with Docker Compose
|
||||
|
||||
## Requirements
|
||||
|
||||
The only requirement is a server with Docker installed.
|
||||
|
||||
## Docker Compose Run
|
||||
|
||||
Assume that docker compose is deployed in the `/opt/slash` directory
|
||||
|
||||
```bash
|
||||
mkdir -p /opt/slash && cd /opt/slash
|
||||
curl -#LO https://github.com/boojack/slash/raw/main/docker-compose.yml
|
||||
docker compose up -d
|
||||
```
|
||||
This will start Slash in the background and expose it on port `5231`. Data is stored in Docker Volume `slash_slash`. You can customize the port and backup your volume.
|
||||
|
||||
## Upgrade
|
||||
|
||||
```bash
|
||||
cd /opt/slash
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user