Giter Club home page Giter Club logo

dockerized-app's People

Contributors

fideloper avatar julientant avatar michielgerritsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerized-app's Issues

mysqldata volume in CI config?

Why there is the mysqldata volume for CI environment if we use there sqlite?
Or maybe I should ask a more general question, do we really need volumes in CI environment?

Maybe this is just a limitation of docker compose configuration file, but I don't understand a little, so could you explain?

Question regarding the Jenkinsfile and docker-compose

Following the Shipping Docker video series but I have a question related to the Jenkinsfile in the https://course.shippingdocker.com/lessons/module-9/automating-tests video.

You are running sh "./develop up -d" and verbally mention in the video that the ./develop bash script will run the CI version of the docker compose file. e.g docker-compose.ci.yml.

But how? You don't pass in a BUILD_NUMBER as per all your previous videos to call the CI version instead of the dev version?

Cron

Just wondering how to use Cron in this environment and therefore

* * * * * php /app/artisan schedule:run >> /dev/null 2>&1

thanks!

Al

Lesson 11 - Rolling Deployments

@fideloper

I've managed to dockerize my laravel app by following the video tutorials.

My site will redirect users from HTTP to HTTPS but I can't get the rolling deployments part working!

On my server, I have copied the code snippet from the tutorial but changed the port from 80 to 443 since I'm running HTTPS by default:

upstream app {
	server my_nginx_phpfpm_1525109406:443;
}

server {
	listen 443;
	listen [::]:443;
	
	root /var/www/html;

	index index.html;

	server_name _;

	location / {
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;

		proxy_intercept_errors on;
		proxy_buffering on;
		proxy_buffer_size 128k;
		proxy_buffers 256 16k;
		proxy_busy_buffers_size 256k;
		proxy_temp_file_write_size 256k;
		proxy_max_temp_file_size 0;
		proxy_read_timeout 300;

		proxy_pass http://app;
		proxy_redirect off;

		# Handle Web Socket connections
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
	}
}

I also pass in port 443 when starting the Nginx proxy container as per tutorial:

docker run -d --name=my_nginx_proxy --network=my_network --restart=always -v /opt/conf.d:/etc/nginx/conf.d -p 443:443 nginx:alpine

Everything seems to start up fine and when I do docker ps -a, I get:

6bcb1cc304bb        XXX        "start-container"        About a minute ago   Up About a minute                                              my_nginx_phpfpm_1525109406
30350ae0a533        nginx:alpine                   "nginx -g 'daemon of…"   10 minutes ago       Up 10 minutes        0.0.0.0:443->443/tcp   my_nginx_proxy

I don't have any errors when I check the Docker logs either for either container.

When I hit my URL, I get the "site cant be reached" message in Chrome.

Any suggestions on how to get your rolling deployments script to work with port 80 and port 443?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.