How to forward Nginx incoming request to Docker container port

Some time ago we decided fully migrate projects on one our server to Docker. There was no problem write Dockerfile according to each project, but we don’t know how to make Docker container accessible by domain. Supposed, we have next configuration in docker-compose.yml: version: '3.7' services: ... webserver: image: nginx:1.16 restart: unless-stopped ports: - "8080:80"... » read more

Rebuild docker image and push to AWS ECR

Login to docker docker login Login to AWS ECR (try skip this step) AWS_PROFILE=terraform $(aws ecr get-login --no-include-email --region eu-central-1) NOTE. Command above should automatically login to AWS ECR, if it isn’t true, you should try to run command without $(...), just AWS_PROFILE=terraform aws ecr get-login --no-include-email --region eu-central-1 Then copy and past output to... » read more