thehipbot / docker-web2py Goto Github PK
View Code? Open in Web Editor NEWweb2py Docker files
web2py Docker files
Howdy,
I tried building your Dockerfile using docker-compose but I keep getting: IOError: [Errno 13] Permission denied: '/var/log/supervisor/supervisord.log' on run.
Regards,
Yusuf
Thanks for a running and working web2py docker :)
I tried to setup a volume to my app:
volumes:
- my_fancy_app:/home/www-data/applications/my_fancy_app
But that didn't work. Is there an easy way to add you own web2py app to this docker? I would like to use my_fancy_app as the default app, which involves adding it to routes.py
routers = dict(
BASE = dict(default_application='my_fancy_app'),
)
It would be nice if it could be done completely via a environment variables.
Hey,
I've tried simply mounted my own cert directory over the top of the /etc/nginx/ssl directory (To replace the .crt and .key file) but the pages aren't accessible when doing this. Is there a quick and easy way to get up and running with a valid cert?
Thanks.
nginx should be run with daemon mode off under Docker, otherwise supervisord keeps thinking the process has terminated, and tries to restart it.
This results in repeated entries in the supervisor log like;
2016-07-08 15:22:29,985 INFO success: nginx-app entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-07-08 15:22:31,489 INFO exited: nginx-app (exit status 1; not expected)
2016-07-08 15:22:32,491 INFO spawned: 'nginx-app' with pid 57
And in the nginx log like:
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2016/07/08 15:22:50 [emerg] 63#0: still could not bind()
Although a nginx process is running, supervisor keeps trying to start another one.
A work-around is to modify supervisor-app.conf as follows:
[program:nginx-app]
command = /usr/sbin/nginx -g "daemon off;"
This work-around was suggested here: http://stackoverflow.com/questions/33650820/nginx-emerg-bind-to-0-0-0-080-failed-98-address-already-in-use-on-docke/33876214#33876214
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.