shipping-docker / dockerized-app Goto Github PK
View Code? Open in Web Editor NEWExample repository for Dockerizing Your Application preview module
Example repository for Dockerizing Your Application preview module
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?
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?
Just wondering how to use Cron in this environment and therefore
* * * * * php /app/artisan schedule:run >> /dev/null 2>&1
thanks!
Al
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.