docker: install

Update docker info
This commit is contained in:
2025-10-08 21:13:17 -04:00
parent 205fa5f3a1
commit f3b91ac1d7
3 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ COPY data/data.db /data/data.db
RUN mkdir /var/www/html/var/cache
RUN mkdir /var/www/html/var/log
RUN symfony console asset-map:compile
#RUN symfony console asset-map:compile
RUN chown -R 33:33 /var/www/html /data
RUN chmod -R 755 /var/www/html /data

View File

@@ -1,7 +1,7 @@
services:
sermon-notes:
container_name: sermon-notes
image: ryanprather/sermon-notes:latest
image: gitea.rkprather.com/ryan/sermon-notes:1.1
ports:
- 80:80
volumes:

View File

@@ -4,7 +4,6 @@ if [ ! -f /var/www/html/.env ]; then
exit 0
fi
echo "APP_ENV=prod" > .env
echo "APP_DEBUG=0" >> .env
@@ -13,10 +12,11 @@ LENGTH=32
SECRET_KEY=$(openssl rand -base64 $LENGTH | tr -d '=' | tr -d '+' | tr -d '/' | tr -d ' ')
TRIMMED_KEY=$(cut -c1-32 <<< $SECRET_KEY)
echo "APP_SECRET=$TRIMMED_KEY" >> .env
echo "DATABASE_URL=\"sqlite:///data/data.db\"" >> .env
echo "DATABASE_URL=\"sqlite:////data/data.db\"" >> .env
echo "MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0" >> .env
COMPOSER_ALLOW_SUPERUSER=1 composer update
symfony console asset-map:compile
symfony console doctrine:migrations:migrate --no-interaction
chown -R www-data:www-data /data