Compare commits
4 Commits
9c682ea58d
...
v1.1
| Author | SHA1 | Date | |
|---|---|---|---|
| dd83e0de95 | |||
| f3b91ac1d7 | |||
| 205fa5f3a1 | |||
| 5b284cc107 |
3
.gitmessage
Normal file
3
.gitmessage
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{type}: {component}
|
||||||
|
|
||||||
|
{summary}
|
||||||
@@ -49,7 +49,7 @@ COPY data/data.db /data/data.db
|
|||||||
|
|
||||||
RUN mkdir /var/www/html/var/cache
|
RUN mkdir /var/www/html/var/cache
|
||||||
RUN mkdir /var/www/html/var/log
|
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 chown -R 33:33 /var/www/html /data
|
||||||
RUN chmod -R 755 /var/www/html /data
|
RUN chmod -R 755 /var/www/html /data
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ This was my first publicly available docker container so I did not realize what
|
|||||||
|
|
||||||
1. Make a directory in your desired docker storage folder (e.g. `~/docker/sermon-notes`), then `cd` into it.
|
1. Make a directory in your desired docker storage folder (e.g. `~/docker/sermon-notes`), then `cd` into it.
|
||||||
2. Create a file called `.env` in that folder, no need to add anything to it right now.
|
2. Create a file called `.env` in that folder, no need to add anything to it right now.
|
||||||
3. Run `docker run -d --name sermon-notes -p 80:80 -v $PWD/data:/data -v $PWD/.env:/var/www/html/.env ryanprather/sermon-notes:latest`, this will download and start the container and keep it running in the background. If you already have something on port 80 change the first `80` to whatever open port you'd like.
|
3. Run `docker run -d --name sermon-notes -p 80:80 -v $PWD/data:/data -v $PWD/.env:/var/www/html/.env gitea.rkprather.com/ryan/sermon-notes:latest`, this will download and start the container and keep it running in the background. If you already have something on port 80 change the first `80` to whatever open port you'd like.
|
||||||
4. Run `docker exec -it sermon-notes bash install.sh` This will run an install script to create an .env file specific to your install, populate with the beginning factors, and then run a `composer` command to download the necessary package dependancies.
|
4. Run `docker exec -it sermon-notes bash install.sh` This will run an install script to create an .env file specific to your install, populate with the beginning factors, and then run a `composer` command to download the necessary package dependancies.
|
||||||
5. Once complete you have a running system that you can navigate to in your browser with `http://{ip}:{port}`|`http://{hostname}:{port}`. Then you just need to register for an account. The first account that is created is made an admin so that you can access the `Reference Editor` and update any reference material if necessary.
|
5. Once complete you have a running system that you can navigate to in your browser with `http://{ip}:{port}`|`http://{hostname}:{port}`. Then you just need to register for an account. The first account that is created is made an admin so that you can access the `Reference Editor` and update any reference material if necessary.
|
||||||
|
|
||||||
|
|||||||
@@ -15,37 +15,37 @@
|
|||||||
"erusev/parsedown": "^1.7",
|
"erusev/parsedown": "^1.7",
|
||||||
"phpdocumentor/reflection-docblock": "^5.4",
|
"phpdocumentor/reflection-docblock": "^5.4",
|
||||||
"phpstan/phpdoc-parser": "^1.28",
|
"phpstan/phpdoc-parser": "^1.28",
|
||||||
"symfony/asset": "7.2.*",
|
"symfony/asset": "7.3.*",
|
||||||
"symfony/asset-mapper": "7.2.*",
|
"symfony/asset-mapper": "7.3.*",
|
||||||
"symfony/console": "7.2.*",
|
"symfony/console": "7.3.*",
|
||||||
"symfony/debug-bundle": "7.2.*",
|
"symfony/debug-bundle": "7.3.*",
|
||||||
"symfony/doctrine-messenger": "7.2.*",
|
"symfony/doctrine-messenger": "7.3.*",
|
||||||
"symfony/dotenv": "7.2.*",
|
"symfony/dotenv": "7.3.*",
|
||||||
"symfony/expression-language": "7.2.*",
|
"symfony/expression-language": "7.3.*",
|
||||||
"symfony/flex": "^2",
|
"symfony/flex": "^2",
|
||||||
"symfony/form": "7.2.*",
|
"symfony/form": "7.3.*",
|
||||||
"symfony/framework-bundle": "7.2.*",
|
"symfony/framework-bundle": "7.3.*",
|
||||||
"symfony/http-client": "7.2.*",
|
"symfony/http-client": "7.3.*",
|
||||||
"symfony/intl": "7.2.*",
|
"symfony/intl": "7.3.*",
|
||||||
"symfony/mailer": "7.2.*",
|
"symfony/mailer": "7.3.*",
|
||||||
"symfony/mime": "7.2.*",
|
"symfony/mime": "7.3.*",
|
||||||
"symfony/monolog-bundle": "^3.0",
|
"symfony/monolog-bundle": "^3.0",
|
||||||
"symfony/notifier": "7.2.*",
|
"symfony/notifier": "7.3.*",
|
||||||
"symfony/process": "7.2.*",
|
"symfony/process": "7.3.*",
|
||||||
"symfony/property-access": "7.2.*",
|
"symfony/property-access": "7.3.*",
|
||||||
"symfony/property-info": "7.2.*",
|
"symfony/property-info": "7.3.*",
|
||||||
"symfony/runtime": "7.2.*",
|
"symfony/runtime": "7.3.*",
|
||||||
"symfony/security-bundle": "7.2.*",
|
"symfony/security-bundle": "7.3.*",
|
||||||
"symfony/serializer": "7.2.*",
|
"symfony/serializer": "7.3.*",
|
||||||
"symfony/stimulus-bundle": "^2.17",
|
"symfony/stimulus-bundle": "^2.17",
|
||||||
"symfony/string": "7.2.*",
|
"symfony/string": "7.3.*",
|
||||||
"symfony/translation": "7.2.*",
|
"symfony/translation": "7.3.*",
|
||||||
"symfony/twig-bundle": "7.2.*",
|
"symfony/twig-bundle": "7.3.*",
|
||||||
"symfony/uid": "7.2.*",
|
"symfony/uid": "7.3.*",
|
||||||
"symfony/ux-turbo": "^2.17",
|
"symfony/ux-turbo": "^2.17",
|
||||||
"symfony/validator": "7.2.*",
|
"symfony/validator": "7.3.*",
|
||||||
"symfony/web-link": "7.2.*",
|
"symfony/web-link": "7.3.*",
|
||||||
"symfony/yaml": "7.2.*",
|
"symfony/yaml": "7.3.*",
|
||||||
"twig/extra-bundle": "^2.12|^3.0",
|
"twig/extra-bundle": "^2.12|^3.0",
|
||||||
"twig/twig": "^2.12|^3.0"
|
"twig/twig": "^2.12|^3.0"
|
||||||
},
|
},
|
||||||
@@ -96,16 +96,16 @@
|
|||||||
"extra": {
|
"extra": {
|
||||||
"symfony": {
|
"symfony": {
|
||||||
"allow-contrib": false,
|
"allow-contrib": false,
|
||||||
"require": "7.2.*"
|
"require": "7.3.*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9.5",
|
"phpunit/phpunit": "^9.5",
|
||||||
"symfony/browser-kit": "7.2.*",
|
"symfony/browser-kit": "7.3.*",
|
||||||
"symfony/css-selector": "7.2.*",
|
"symfony/css-selector": "7.3.*",
|
||||||
"symfony/maker-bundle": "^1.0",
|
"symfony/maker-bundle": "^1.0",
|
||||||
"symfony/phpunit-bridge": "^7.2",
|
"symfony/phpunit-bridge": "^7.2",
|
||||||
"symfony/stopwatch": "7.2.*",
|
"symfony/stopwatch": "7.3.*",
|
||||||
"symfony/web-profiler-bundle": "7.2.*"
|
"symfony/web-profiler-bundle": "7.3.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
sermon-notes:
|
sermon-notes:
|
||||||
container_name: sermon-notes
|
container_name: sermon-notes
|
||||||
image: ryanprather/sermon-notes:latest
|
image: gitea.rkprather.com/ryan/sermon-notes:1.1
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/data:/data
|
- ${PWD}/data:/data
|
||||||
- $PWD/.env:/var/www/html/.env
|
- ${PWD}/.env:/var/www/html/.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ if [ ! -f /var/www/html/.env ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "APP_ENV=prod" > .env
|
echo "APP_ENV=prod" > .env
|
||||||
echo "APP_DEBUG=0" >> .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 ' ')
|
SECRET_KEY=$(openssl rand -base64 $LENGTH | tr -d '=' | tr -d '+' | tr -d '/' | tr -d ' ')
|
||||||
TRIMMED_KEY=$(cut -c1-32 <<< $SECRET_KEY)
|
TRIMMED_KEY=$(cut -c1-32 <<< $SECRET_KEY)
|
||||||
echo "APP_SECRET=$TRIMMED_KEY" >> .env
|
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
|
echo "MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0" >> .env
|
||||||
|
|
||||||
COMPOSER_ALLOW_SUPERUSER=1 composer update
|
COMPOSER_ALLOW_SUPERUSER=1 composer update
|
||||||
|
symfony console asset-map:compile
|
||||||
symfony console doctrine:migrations:migrate --no-interaction
|
symfony console doctrine:migrations:migrate --no-interaction
|
||||||
|
|
||||||
chown -R www-data:www-data /data
|
chown -R www-data:www-data /data
|
||||||
|
|||||||
Reference in New Issue
Block a user