Add Redis.

This commit is contained in:
Paul
2021-09-19 22:47:01 +01:00
parent b6b73e4fb4
commit 03437cf515

View File

@@ -8,12 +8,21 @@ services:
volumes: volumes:
- ./data/db:/data/db - ./data/db:/data/db
# Redis server
redis:
image: eqalpha/keydb
restart: always
# REVOLT API server (Delta) # REVOLT API server (Delta)
api: api:
image: revoltchat/server image: revoltchat/server
env_file: .env env_file: .env
depends_on:
- database
- redis
environment: environment:
- REVOLT_MONGO_URI=mongodb://database - REVOLT_MONGO_URI=mongodb://database
- REVOLT_REDIS_URI=redis://redis/
ports: ports:
- "8000:8000" - "8000:8000"
- "9000:9000" - "9000:9000"
@@ -60,6 +69,9 @@ services:
autumn: autumn:
image: revoltchat/autumn image: revoltchat/autumn
env_file: .env env_file: .env
depends_on:
- database
- createbuckets
environment: environment:
- AUTUMN_MONGO_URI=mongodb://database - AUTUMN_MONGO_URI=mongodb://database
ports: ports: