zsk-poznan / zastepstwa

Web app for displaying substitute teachers
GNU General Public License v3.0
8 stars 3 forks source link

Feature/docker deploy #41

Closed pniedzwiedzinski closed 4 years ago

pniedzwiedzinski commented 4 years ago

In this PR I added production configuration with docker-compose.

So to start the production run make start-prod

Make snippets

I added snippets for production

make start-prod
make logs-prod
make stop-prod
make remove-prod

Dockerfiles

I created dockerfiles for production. These images are later built on Github Actions and pushed to Docker Hub. We will use different images for production and development since development images will store all the code and dependencies in the volume.

Multi-arch

I've set up multi-arch pipeline for building the docker images. It's a little tricky, hence this is an experimental feature of docker. Currently, it will build for 4 architectures: amd64, i386, arm64, armv7

pniedzwiedzinski commented 4 years ago

Since I have run the deploy workflow you can test the multi-arch images with make start-prod