Fix directory mapping
This commit is contained in:
parent
f91805504b
commit
102150ea63
|
@ -15,4 +15,4 @@ services:
|
||||||
- '80:80'
|
- '80:80'
|
||||||
- '433:433'
|
- '433:433'
|
||||||
volumes:
|
volumes:
|
||||||
- /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data
|
- ./data:/var/www/onlyoffice/Data
|
||||||
|
|
|
@ -21,11 +21,11 @@ openssl x509 \
|
||||||
# Strengthening the server security
|
# Strengthening the server security
|
||||||
openssl dhparam -out dhparam.pem 2048
|
openssl dhparam -out dhparam.pem 2048
|
||||||
|
|
||||||
mkdir -p /app/onlyoffice/DocumentServer/data/certs
|
mkdir -p data/certs
|
||||||
cp $private_key /app/onlyoffice/DocumentServer/data/certs/
|
cp $private_key data/certs/
|
||||||
cp $certificate /app/onlyoffice/DocumentServer/data/certs/
|
cp $certificate data/certs/
|
||||||
cp dhparam.pem /app/onlyoffice/DocumentServer/data/certs/
|
cp dhparam.pem data/certs/
|
||||||
chmod 400 /app/onlyoffice/DocumentServer/data/certs/$private_key
|
chmod 400 data/certs/$private_key
|
||||||
|
|
||||||
# Check if the yml exists
|
# Check if the yml exists
|
||||||
if [[ ! -f $config ]]; then
|
if [[ ! -f $config ]]; then
|
||||||
|
|
Loading…
Reference in a new issue