[feat] Add basic compose.yaml [skip ci]
This commit is contained in:
parent
cb567e284b
commit
61207e5931
2 changed files with 41 additions and 0 deletions
11
compose.env
Normal file
11
compose.env
Normal file
|
@ -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
|
30
compose.yaml
Normal file
30
compose.yaml
Normal file
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue