mirror of
https://github.com/kodxana/madiator-docker-runpod.git
synced 2024-11-22 10:50:12 +01:00
23 lines
No EOL
1.1 KiB
YAML
23 lines
No EOL
1.1 KiB
YAML
services:
|
|
mydev:
|
|
image: madiator2011/better-launcher:dev
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
command: ["sh", "-c", "pip install debugpy -t /tmp && python /tmp/debugpy --listen 0.0.0.0:5678 -m flask run --host 0.0.0.0 --port 7222"]
|
|
ports:
|
|
- 5678:5678 # (random) port for debuggy (adjust together in above "command")
|
|
- 7222:7222 # main Flask app port better-launcher "App-Manager"
|
|
- 8181:8181 # File-Browser
|
|
- 7777:7777 # VSCode-Server
|
|
env_file:
|
|
- .env # pass additional env-vars (hf_token, civitai token, ssh public-key) from ".env" file to container
|
|
environment:
|
|
- LOCAL_DEBUG=True # change app to localhost Urls and local Websockets (unsecured)
|
|
- FLASK_APP=app/app.py
|
|
- FLASK_ENV=development # changed from "production"
|
|
- GEVENT_SUPPORT=True # gevent monkey-patching is being used, enable gevent support in the debugger
|
|
#- "FLASK_DEBUG": "0" # "1" allows debugging in Chrome, but then VSCode debugger not works
|
|
volumes:
|
|
- ./app:/app:rw
|
|
- ${HOME}/Projects/Docker/madiator:/workspace:rw # TODO: create the below folder before you run! |