Fix directory mapping

This commit is contained in:
Semen Bezrukov 2020-04-29 11:14:43 +03:00
parent f91805504b
commit 102150ea63
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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