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