From e5048b0b3250994490406ccca1836a2a9c4bd86583534b1a5252b6c1d8db41b8 Mon Sep 17 00:00:00 2001 From: jeekkaaaa Date: Thu, 27 Mar 2025 12:09:58 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2602191 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +services: + redis: + image: redis:7-alpine + # Set a size limit. See link below on how to customise. + # https://redis.io/docs/manual/eviction/ + # command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru + networks: + - network1 + app: + image: cupcakearmy/cryptgeon:latest + depends_on: + - redis + environment: + # Size limit for a single note. + SIZE_LIMIT: 4 MiB + ports: + - 5002:8000 + networks: + - network1 +networks: + network1: + name: service + external: true + + + # Optional health checks + # healthcheck: + # test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/api/live/"] + # interval: 1m + # timeout: 3s + # retries: 2 + # start_period: 5s \ No newline at end of file