1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 18:17:38 +03:00

docker-compose: always mount source volume

This commit is contained in:
Anatoli Babenia 2021-11-13 01:57:08 +03:00
parent dd35bc90bb
commit fe80c38760
2 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,7 @@ services:
environment: environment:
FLASK_ENV: development FLASK_ENV: development
#FLASK_RUN_RELOAD: False #FLASK_RUN_RELOAD: False
FLASK_APP: "bin/srv.py" FLASK_APP: "bin/app.py"
FLASK_RUN_HOST: 0.0.0.0 FLASK_RUN_HOST: 0.0.0.0
FLASK_RUN_PORT: 8002 FLASK_RUN_PORT: 8002
entrypoint: ["/usr/bin/flask", "run"] entrypoint: ["/usr/bin/flask", "run"]
volumes:
- .:/app:Z

View File

@ -10,6 +10,8 @@ services:
- CHEATSH_CACHE_REDIS_HOST=redis - CHEATSH_CACHE_REDIS_HOST=redis
ports: ports:
- "8002:8002" - "8002:8002"
volumes:
- .:/app:Z
redis: redis:
image: redis:4-alpine image: redis:4-alpine
volumes: volumes: