9 Commits

Author SHA1 Message Date
896cfab7a1 add --reload for non prod 2024-12-07 19:34:44 +11:00
a7abf480f9 generally neaten up invocation of gunicorn - consolidate it to 1 invocation, with correct variables based on prod or not 2024-11-16 00:07:12 +11:00
42a3edb4cc use sudo of pybook user to run gunicorn, and add timeout of 300 as getting the ebook can be really slow 2024-11-15 23:08:58 +11:00
5838ada2e3 remove port 5000 and use std 80, and use traefik to route correctly 2024-08-25 22:44:45 +10:00
bbe0590b1e update to use user: 2000:2000 / ARGS in build, and use the python image instead of a full ubuntu image. Also use r to escape regex str 2024-02-18 20:37:59 +11:00
22a625d354 added failsafe to keep container up if python is so broke it kills gunicorn on init 2023-10-02 18:45:03 +11:00
9e4ee74775 made explicit the difference between development and conatiner in wrapper (and docker-compose) so that we can run FLASK on port 5000 using db on localhost 55432. bookdb_webdev is a container, running on port 5001 and using bookdb_dev container on port 5432 2023-06-13 00:27:10 +10:00
e36e9fd098 using --enable-stdio-inheritance for prod gunicorn too 2023-06-12 20:46:13 +10:00
e92cfd448e fixed BUG-26 (saving with a series), and added a bookdb_webdev container that maps ~/src/pybook to /pybook_mapped_volume. Then start a single threaded, reloading, output capturing gunicorn via wraper.sh if in DEV, otherwise normal gunicorn if in PROD - gives me an idnentical dev in a container to prod. 2023-06-12 20:43:45 +10:00