mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Reworking how Sanic is run for upgraded Sanic version
This commit is contained in:
parent
173284699d
commit
c731527883
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