Add automatically creating the volume folder.
This commit is contained in:
@@ -6,7 +6,7 @@ volumes:
|
|||||||
driver: local
|
driver: local
|
||||||
driver_opts:
|
driver_opts:
|
||||||
type: none
|
type: none
|
||||||
device: ../../Volumes/F-DroidRepo/data
|
device: $FDROID_DATA #../../Volumes/F-DroidRepo/fdroid by default.
|
||||||
o: bind
|
o: bind
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ COMPOSE_BAKE=true
|
|||||||
CPU=0.25
|
CPU=0.25
|
||||||
MEM=0.25G
|
MEM=0.25G
|
||||||
|
|
||||||
|
## Storage Location ##
|
||||||
|
|
||||||
|
FDROID_DATA="../../Volumes/F-DroidRepo/fdroid"
|
||||||
|
|
||||||
## Repo Settings ##
|
## Repo Settings ##
|
||||||
|
|
||||||
#WEBROOT="/var/www/html"
|
#WEBROOT="/var/www/html"
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 2026-07-04 Hyperling
|
||||||
|
# Create the necessary folders for volumes to work.
|
||||||
|
# This must be run before the container will start properly.
|
||||||
|
|
||||||
|
## Setup ##
|
||||||
|
|
||||||
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
|
source $DIR/.env
|
||||||
|
|
||||||
|
## Main ##
|
||||||
|
|
||||||
|
# Create folders.
|
||||||
|
mkdir -pv $FDROID_DATA
|
||||||
|
|
||||||
|
# Finish successfully.
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user