mount src folder, fix permissions, store db and media on host directories

This commit is contained in:
Swift Ugandan
2021-01-25 12:36:16 +00:00
parent a15ed70d44
commit ac3ce569a8
16 changed files with 150 additions and 97 deletions

3
deploy/docker/prestart.sh Normal file → Executable file
View File

@@ -1,7 +1,4 @@
#!/bin/bash
mkdir -p /home/mediacms.io/mediacms/logs
touch /home/mediacms.io/mediacms/logs/debug.log
chown www-data. -R /home/mediacms.io/mediacms/logs
RANDOM_ADMIN_PASS=`python -c "import secrets;chars = 'abcdefghijklmnopqrstuvwxyz0123456789';print(''.join(secrets.choice(chars) for i in range(10)))"`
ADMIN_PASSWORD=${ADMIN_PASSWORD:-$RANDOM_ADMIN_PASS}