created wrapper.sh to also run pa_job_manager in paweb container, exposed port 55432, have not tested that the job manager is connectable and we prob. should not expose that port in the long run, but for another night
This commit is contained in:
@@ -16,5 +16,6 @@ COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3 install --upgrade pillow --user
|
||||
EXPOSE 443
|
||||
EXPOSE 55432
|
||||
COPY . .
|
||||
CMD ["gunicorn", "--bind=0.0.0.0:443", "--workers=2","--threads=2", "--certfile", "/etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem", "--keyfile", "/etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem","main:app"]
|
||||
CMD ["./wrapper.sh"]
|
||||
|
||||
4
wrapper.sh
Executable file
4
wrapper.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
python3 ./pa_job_manager.py &
|
||||
gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app
|
||||
Reference in New Issue
Block a user