-
Notifications
You must be signed in to change notification settings - Fork 5
Grav
Max Malm edited this page Dec 28, 2015
·
3 revisions
- Do this with Alpine instead (smaller images)
- Use PHP-FPM
- Files not getting updated on build, i.e. when pulling latest image and starting the container again, data is not updated. Probably related to the volume here: https://github.com/benjick/docker/blob/2d08d0939fba2155c8557cea913c04fc19b173a5/grav/Dockerfile#L23 Do we need to persist this? If it's gone for some reason it will just be reinstalled anyway.
If you've started your container with the name mygrav you can use bin/gpm and bin/grav like this:
docker exec mygrav bin/grav list
docker exec mygrav bin/gpm list
If you use this a lot you can create an alias
alias gpm="docker exec mygrav bin/gpm"
gpm list
Use https://github.com/jwilder/nginx-proxy or https://github.com/dmp1ce/nginx-proxy-letsencrypt