+1, awesome write-up Josh! It's given me a little extra motivation to
rework some of my own personal infrastructure into something easier to
manage like yours.
One tip for docker-compose and volumes – I've had some strange issues
before with getting the containers to play nicely with each other when
you need to share data between running containers. There is an
additional parameter you can add to your volumes in the
docker-compose.yml file to set SELinux labeling on the volume bind mounts:
volumes:
- ./my-web-app:/var/www/html:z
The lowercase :z labels the bind mount to share between multiple
containers. The uppercase :Z indicates the bind mount is private and not
to be shared.
See more info here:
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label
It took me a week or so to figure this bug out in a project I was
running, hopefully it is helpful for you too.
Thanks for sharing this on the mailing list too!
On 05/13/2018 02:04 AM, Mike Nolan wrote:
Hey Josh!
Wonderful blog post. docker-compose was definitely a game changer for
me. I haven't run too many word press instances but I do wonder whether
there are tools out there for performing database migrations with
wordpress databases. In the case of django (which I usually use in
conjunction with docker-compose and postgres) it offers a migration tool
that handles all the table creation on it's own.
Best of luck and happy containerizing!
- Nolski
On Mon, May 7, 2018 at 11:10 PM, Josh Bicking (RIT Student)
<jhb2345(a)rit.edu <mailto:jhb2345@rit.edu>> wrote:
Hello FOSSRIT!
After experimenting with a few setups, I have a home server setup
that I'm finally happy with. I wanted to share the story and the
outcome:
https://jossh.us/?p=73
I haven't done much technical writing, so feel free to ask questions
and give feedback!
--
Josh Bicking
_______________________________________________
FOSS @ Rochester Institute of Technology (RIT) mailing list --
fossrit(a)lists.fedorahosted.org <mailto:fossrit@lists.fedorahosted.org>
To unsubscribe send an email to fossrit-leave(a)lists.fedorahosted.org
<mailto:fossrit-leave@lists.fedorahosted.org>
_______________________________________________
FOSS @ Rochester Institute of Technology (RIT) mailing list --
fossrit(a)lists.fedorahosted.org
To unsubscribe send an email to fossrit-leave(a)lists.fedorahosted.org
--
Cheers,
Justin W. Flory
jflory7(a)gmail.com