example docker-compose.yml

This commit is contained in:
Lea 2024-12-08 19:56:40 +01:00
parent b44c4a7597
commit 3f96f2980f

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
services:
therapy:
build:
context: .
dockerfile: Dockerfile
tty: true
stdin_open: true
environment:
# Example environment, please don't run in that way
- FLASK_THERAPY_SECRET="test1234"
- CACHE_TYPE=redis
- CACHE_REDIS_HOST=redis
- CACHE_REDIS_PORT=6379
- CACHE_REDIS_DB=0
depends_on:
- redis
container_name: therapy-app
restart: always
ports:
- "5000:5000"
redis:
image: "redis:latest"
ports:
- "6379:6379"
command: redis-server