refactor(readme): update compose file.

This commit is contained in:
Stavros 2023-12-06 22:07:37 +02:00 committed by GitHub
parent 8dcfc16246
commit 632bcc63f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,9 +38,11 @@ Pre-Pre-Pre-Pre-Pre Alpha v0.06 ( :fire: Experimental. Don't install on any serv
* Docker compose.yaml:
```
version: "3.9"
services:
dweebui:
container_name: DweebUI
container_name: dweebui
image: lllllllillllllillll/dweebui:v0.06
environment:
NODE_ENV: production
@ -54,23 +56,29 @@ services:
links:
- cache
volumes:
- dweebui:/app
- caddyfiles:/app/caddyfiles
- ./data/app:/app
- ./data/caddyfiles:/app/caddyfiles
- /var/run/docker.sock:/var/run/docker.sock
cache:
container_name: DweebCache
networks:
- dweeb_main_network
dweeb-redis:
container_name: dweeb-redis
image: redis:6.2-alpine
restart: always
restart: unless-stopped
command: redis-server --save 20 1 --loglevel warning --requirepass replace_with_password_for_redis
volumes:
- cache:/data
- ./data/redis:/data
networks:
- dweeb_main_network
volumes:
dweebui:
cache:
caddyfiles:
networks:
dweeb_main_network:
driver: bridge
```
In order to use the compose file create a folder named somethign like ```dweebui``` and add the contents of above to a file named ```docker-compose.yml```. Also make sure to create a ```data``` folder for the dweeb files to be storred in.
* Using setup.sh:
```
Extract DweebUI.zip and navigate to /DweebUI