File: docker-compose.debug.yml

package info (click to toggle)
cht.sh 0.0~git20220418.571377f-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,456 kB
  • sloc: python: 3,731; sh: 1,460; xml: 10; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Compose override, see https://docs.docker.com/compose/extends/
#
# - Run `flask` standalone server with more debug aids instead of `gevent`
# - Turn on Flask debug mode to print tracebacks and autoreload code
# - Mounts fresh sources from current dir as volume
#
# Usage:
#   docker-compose -f docker-compose.yml -f docker-compose.debug.yml up
#
version: '2'
services:
  app:
    environment:
      FLASK_ENV: development
      #FLASK_RUN_RELOAD: False
      FLASK_APP: "bin/app.py"
      FLASK_RUN_HOST: 0.0.0.0
      FLASK_RUN_PORT: 8002
    entrypoint: ["/usr/bin/flask", "run"]