From 3f96f2980f59c9f8bcb9dedac85d013773b00a2a Mon Sep 17 00:00:00 2001 From: Lea Date: Sun, 8 Dec 2024 19:56:40 +0100 Subject: [PATCH] example docker-compose.yml --- docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9d9b90d --- /dev/null +++ b/docker-compose.yml @@ -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 + + + +