1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

flask-redis: dev envs support & misc improvements (#265)

(Most of this is almost identical to #263.)

* Docker Desktop Development Environments config
* Use cache volumes for pip
* Downgrade from Python 3.11 _alpha_ -> Python 3.10
* Use port `8000` to avoid conflicts with Airplay on
    macOS for default Flask port `5000`
* Use `SIGINT` to gracefully stop Flask
* Formatting fixes in `compose.yaml`

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
Milas Bowman 2022-07-08 10:48:08 -04:00 committed by GitHub
parent ec552567c7
commit b53e4542c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 73 additions and 20 deletions

View file

@ -0,0 +1,16 @@
services:
redis:
image: redislabs/redismod
ports:
- '6379:6379'
web:
build:
context: .
target: dev-envs
stop_signal: SIGINT
ports:
- '8000:8000'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- redis