https://github.com/programarivm/myoctober-hello
Creates a basic OctoberCMS app -- the OctoberCMS demo -- using PHP 7.4 and Nginx 1.18.
https://github.com/programarivm/myoctober-hello
docker example howto nginx octobercms php tutorial
Last synced: 11 months ago
JSON representation
Creates a basic OctoberCMS app -- the OctoberCMS demo -- using PHP 7.4 and Nginx 1.18.
- Host: GitHub
- URL: https://github.com/programarivm/myoctober-hello
- Owner: programarivm
- Created: 2020-11-05T14:38:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T17:10:43.000Z (about 5 years ago)
- Last Synced: 2025-01-08T14:15:37.676Z (about 1 year ago)
- Topics: docker, example, howto, nginx, octobercms, php, tutorial
- Language: Dockerfile
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## My October
Creates a basic OctoberCMS app -- the OctoberCMS demo -- using PHP 7.4 and Nginx 1.18.
## How-to Guide
Build the Docker containers:
$ docker-compose up --build
Create a new OctoberCMS project as a non-root user:
$ docker exec -itu 1000:1000 myoctober_php_fpm composer create-project october/october myoctober
Move the project into the root's current directory:
$ mv -v {myoctober/*,myoctober/.*} .
Remove the remaining empty folder:
$ rm -rf myoctober
Make sure to set up permissions properly:
$ sudo chmod 775 -R storage
$ sudo chown -R standard:www-data storage
Finally, find out the IP of your `myoctober_nginx` container:
$ echo $(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' myoctober_nginx)
Congrats! With the IP at hand browse your new site -- e.g. `http://172.23.0.3`.