upd: docker

update docker-compose and readme with updated docker image
This commit is contained in:
2025-10-10 17:15:00 -04:00
parent f3b91ac1d7
commit dd83e0de95
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -5,6 +5,6 @@ services:
ports:
- 80:80
volumes:
- $PWD/data:/data
- $PWD/.env:/var/www/html/.env
- ${PWD}/data:/data
- ${PWD}/.env:/var/www/html/.env
restart: unless-stopped