From 61207e593130faf48fbde960c377a5f30b2c126c Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sun, 17 Mar 2024 01:23:43 -0600 Subject: [PATCH] [feat] Add basic compose.yaml [skip ci] --- compose.env | 11 +++++++++++ compose.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 compose.env create mode 100644 compose.yaml diff --git a/compose.env b/compose.env new file mode 100644 index 0000000..0b9174b --- /dev/null +++ b/compose.env @@ -0,0 +1,11 @@ +# Required values +TOKEN= +ERAPI= + +# Optional values +MONGO.HOST=mongo +MONGO.PORT=27017 +LOG_LEVEL=INFO +SYNC=True +REDIS.HOST=redis://cache +ENVIRONMENT=production \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4958a53 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,30 @@ +--- +version: "3.9" + +services: + cache: + image: redis + restart: unless-stopped + command: redis-server --save 20 1 --loglevel warning + + mongo: + image: mongo + restart: unless-stopped + + bot: + image: zevaryx/jarvis-tasks:stable + restart: unless-stopped + depends_on: + - cache + env_file: + - .env + + tasks: + image: zevaryx/jarvis-tasks:stable + restart: unless-stopped + depends_on: + - cache + env_file: + - .env + + \ No newline at end of file