getavalon / docker

Avalon in a Dockerfile
MIT License
5 stars 2 forks source link

Switch from single to multiple containers #20

Closed mottosso closed 6 years ago

mottosso commented 6 years ago

This is working quite well, and let us re-use most of the functionality from the original containers; samba, mongo and CGWire. Our "wrapper" containers do very little and can expand over time to include more bespoke functionality.

From the README.

docker run --name avalon-files -d --rm \
    -p 445:445 \
    avalon/files:0.4 \
    -s "Avalon;/avalon;yes;no;yes;all;none;all" \
    -u "avalon;default"
docker run --name avalon-database -d --rm \
    -v avalon-database:/data/db \
    -p 27017:27017 \
    avalon/database:0.4
docker run --name avalon-tracker -d --rm \
    -v avalon-tracker:/var/lib/postgresql \
    -v avalon-tracker:/opt/zou/zou/thumbnails \
    -p 80:80 \
    avalon/tracker:0.4

I've pushed these containers to the Docker Hub, so this should work as-is.

tokejepsen commented 6 years ago

That does look a lot more simple. Nice work!

mottosso commented 6 years ago

Bam!

Would you like to have a look at tests for this version, @tokejepsen?

tokejepsen commented 6 years ago

Nice!

Yeah, I give the tests a go now.