mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 13:49:57 -05:00
Reworking how Sanic is run for upgraded Sanic version
This commit is contained in:
parent
bdf5e0856f
commit
399b17ce4e
5 changed files with 15 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: docker/api/Dockerfile
|
||||
environment:
|
||||
# Sanic 25.x wants 'spawn' but our code uses 'fork' for multiprocessing.
|
||||
# This tells Sanic to accept the existing start method.
|
||||
- SANIC_START_METHOD_SET=1
|
||||
volumes:
|
||||
- './main.py:/opt/wrolpi/main.py'
|
||||
- './wrolpi:/opt/wrolpi/wrolpi'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue