forked from kofal.net/stoatchat-self-hosted
Update to new stoat name new docker config options
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: revolt
|
name: stoat
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# MongoDB database
|
# MongoDB: Database
|
||||||
database:
|
database:
|
||||||
image: mongo
|
image: docker.io/mongo
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/db:/data/db
|
- ./data/db:/data/db
|
||||||
@@ -14,13 +14,14 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
# Redis server
|
# Redis: Event message broker & KV store
|
||||||
redis:
|
redis:
|
||||||
image: eqalpha/keydb
|
image: docker.io/eqalpha/keydb
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
# RabbitMQ: Internal message broker
|
||||||
rabbit:
|
rabbit:
|
||||||
image: rabbitmq:4
|
image: docker.io/rabbitmq:4
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
RABBITMQ_DEFAULT_USER: rabbituser
|
RABBITMQ_DEFAULT_USER: rabbituser
|
||||||
@@ -34,9 +35,9 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
|
|
||||||
# S3-compatible storage server
|
# MinIO: S3-compatible storage server
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio
|
image: docker.io/minio/minio
|
||||||
command: server /data
|
command: server /data
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/minio:/data
|
- ./data/minio:/data
|
||||||
@@ -57,9 +58,9 @@ services:
|
|||||||
- emojis.minio
|
- emojis.minio
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# Caddy web server
|
# Caddy: Web server
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy
|
image: docker.io/caddy
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- HOSTNAME=${HOSTNAME}
|
- HOSTNAME=${HOSTNAME}
|
||||||
@@ -74,9 +75,9 @@ services:
|
|||||||
- ./data/caddy-data:/data
|
- ./data/caddy-data:/data
|
||||||
- ./data/caddy-config:/config
|
- ./data/caddy-config:/config
|
||||||
|
|
||||||
# API server (delta)
|
# API server
|
||||||
api:
|
api:
|
||||||
image: ghcr.io/revoltchat/server:20241213-1
|
image: ghcr.io/revoltchat/server:20250930-2
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -90,9 +91,9 @@ services:
|
|||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# Events service (quark)
|
# Events service
|
||||||
events:
|
events:
|
||||||
image: ghcr.io/revoltchat/bonfire:20241213-1
|
image: ghcr.io/revoltchat/bonfire:20250930-2
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -104,7 +105,7 @@ services:
|
|||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# Web App (revite)
|
# Web App
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/revoltchat/client:master
|
image: ghcr.io/revoltchat/client:master
|
||||||
restart: always
|
restart: always
|
||||||
@@ -112,9 +113,9 @@ services:
|
|||||||
- HOSTNAME=${HOSTNAME}
|
- HOSTNAME=${HOSTNAME}
|
||||||
- REVOLT_PUBLIC_URL={REVOLT_PUBLIC_URL}
|
- REVOLT_PUBLIC_URL={REVOLT_PUBLIC_URL}
|
||||||
|
|
||||||
# File server (autumn)
|
# File server
|
||||||
autumn:
|
autumn:
|
||||||
image: ghcr.io/revoltchat/autumn:20241213-1
|
image: ghcr.io/revoltchat/autumn:20250930-2
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -126,18 +127,41 @@ services:
|
|||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# Metadata and image proxy (january)
|
# Metadata and image proxy
|
||||||
january:
|
january:
|
||||||
image: ghcr.io/revoltchat/january:20241213-1
|
image: ghcr.io/revoltchat/january:20250930-2
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./Revolt.toml
|
source: ./Revolt.toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# Push notification daemon (pushd)
|
# Tenor proxy
|
||||||
|
gifbox:
|
||||||
|
image: ghcr.io/revoltchat/gifbox:20250930-2
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./Revolt.toml
|
||||||
|
target: /Revolt.toml
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
# Regular task daemon
|
||||||
|
crond:
|
||||||
|
image: ghcr.io/revoltchat/crond:20250930-2
|
||||||
|
depends_on:
|
||||||
|
database:
|
||||||
|
condition: service_healthy
|
||||||
|
minio:
|
||||||
|
condition: service_started
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./Revolt.toml
|
||||||
|
target: /Revolt.toml
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
# Push notification daemon
|
||||||
pushd:
|
pushd:
|
||||||
image: ghcr.io/revoltchat/pushd:20241213-1
|
image: ghcr.io/revoltchat/pushd:20250930-2
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -153,13 +177,13 @@ services:
|
|||||||
|
|
||||||
# Create buckets for minio.
|
# Create buckets for minio.
|
||||||
createbuckets:
|
createbuckets:
|
||||||
image: minio/mc
|
image: docker.io/minio/mc
|
||||||
depends_on:
|
depends_on:
|
||||||
- minio
|
- minio
|
||||||
entrypoint: >
|
entrypoint: >
|
||||||
/bin/sh -c "
|
/bin/sh -c "
|
||||||
while ! /usr/bin/mc ready minio; do
|
while ! /usr/bin/mc ready minio; do
|
||||||
/usr/bin/mc config host add minio http://minio:9000 minioautumn minioautumn;
|
/usr/bin/mc alias set minio http://minio:9000 minioautumn minioautumn;
|
||||||
echo 'Waiting minio...' && sleep 1;
|
echo 'Waiting minio...' && sleep 1;
|
||||||
done;
|
done;
|
||||||
/usr/bin/mc mb minio/revolt-uploads;
|
/usr/bin/mc mb minio/revolt-uploads;
|
||||||
|
|||||||
Reference in New Issue
Block a user