McSneaky Blog

Automate Docker deployment with Gitlab

Going to deploy single Docker container to remote server. Good for all sorts of small projects and pages, like this blog :) .gitlab-ci.yml Create .gitlab-ci.yml file in project root # Setup 2 steps: # dockerize Build container # deploy Deploy to remote server stages: - dockerize - deploy dockerize: stage: dockerize image:

Static files in Dockerized Nginx

Dockerfile and Nginx config to setup really basic statics file hosting container. This setup will let host do all the HTTPS, GZIP, cache etc magic. This is just nice starting point # Use nginx:alpine as base image FROM nginx:alpine # Copy static files into Nginx webroot COPY ./public /usr/share/

McSneaky Blog © 2026