Reverting to Docker volumes.

I'll create seperate instructions for bind mounts.
This commit is contained in:
lllllllillllllillll 2023-12-09 12:49:50 -08:00
parent b17af5804e
commit 96d8ea7850
2 changed files with 25 additions and 9 deletions

View file

@ -52,18 +52,28 @@ services:
ports:
- 8000:8000
volumes:
- ./data/app:/app
- ./data/caddyfiles:/app/caddyfiles
- dweebui:/app
- caddyfiles:/app/caddyfiles
- /var/run/docker.sock:/var/run/docker.sock
networks:
- dweeb_main_network
- dweeb_network
volumes:
dweebui:
caddyfiles:
networks:
dweeb_main_network:
dweeb_network:
driver: bridge
```
Compose setup: Paste the above content into a file named ```docker-compose.yml``` then place it in a folder named ```dweebui```. You'll also need to create a ```data``` folder for the dweeb files to be stored in.
* Compose setup:
Paste the above content into a file named ```docker-compose.yml``` then place it in a folder named ```dweebui```.
Open a terminal in the ```dweebui``` folder, then enter ```docker compose up -d```.
You may need to use ```docker-compose up -d``` or execute the command as root with either ```sudo docker compose up -d``` or ```sudo docker-compose up -d```.
* Using setup.sh:
```

View file

@ -12,12 +12,18 @@ services:
ports:
- 8000:8000
volumes:
- ./data/app:/app
- ./data/caddyfiles:/app/caddyfiles
- dweebui:/app
- caddyfiles:/app/caddyfiles
- /var/run/docker.sock:/var/run/docker.sock
networks:
- dweeb_main_network
- dweeb_network
volumes:
dweebui:
caddyfiles:
networks:
dweeb_main_network:
dweeb_network:
driver: bridge