You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
revolt-docker/docker-compose.yml

94 lines
1.9 KiB
YAML

4 years ago
version: '3.8'
services:
# MongoDB database
database:
image: mongo
restart: always
volumes:
- ./data/db:/data/db
3 years ago
# Redis server
redis:
image: eqalpha/keydb
restart: always
# API server (delta)
4 years ago
api:
3 years ago
image: ghcr.io/revoltchat/server:20220715-1
4 years ago
env_file: .env
3 years ago
depends_on:
- database
- redis
4 years ago
ports:
- "8000:8000"
restart: always
# Events service (quark)
events:
3 years ago
image: ghcr.io/revoltchat/bonfire:20220715-1
env_file: .env
depends_on:
- database
- redis
ports:
4 years ago
- "9000:9000"
restart: always
# Web App (revite)
4 years ago
web:
3 years ago
image: ghcr.io/revoltchat/client:master
env_file: .env
4 years ago
ports:
- "5000:5000"
restart: always
# S3-compatible storage server
minio:
image: minio/minio
command: server /data
env_file: .env
volumes:
- ./data/minio:/data
4 years ago
ports:
- "10000:9000"
restart: always
# Create buckets for minio.
createbuckets:
image: minio/mc
depends_on:
- minio
env_file: .env
entrypoint: >
/bin/sh -c "
while ! curl -s --output /dev/null --connect-timeout 1 http://minio:9000; do echo 'Waiting minio...' && sleep 0.1; done;
/usr/bin/mc alias set minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
/usr/bin/mc mb minio/attachments;
/usr/bin/mc mb minio/avatars;
/usr/bin/mc mb minio/backgrounds;
/usr/bin/mc mb minio/icons;
/usr/bin/mc mb minio/banners;
exit 0;
"
# File server (autumn)
4 years ago
autumn:
image: ghcr.io/revoltchat/autumn:1.1.4
4 years ago
env_file: .env
3 years ago
depends_on:
- database
- createbuckets
4 years ago
environment:
- AUTUMN_MONGO_URI=mongodb://database
ports:
- "3000:3000"
restart: always
# Metadata and image proxy (january)
4 years ago
january:
image: ghcr.io/revoltchat/january:master
4 years ago
ports:
- "7000:7000"
4 years ago
restart: always