remove depends_on statements that abra doesn't like, add environment vars, add volumes, remove smtp_pass
This commit is contained in:
206
compose.yml
206
compose.yml
@ -1,4 +1,3 @@
|
|||||||
---
|
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@ -6,32 +5,54 @@ services:
|
|||||||
app:
|
app:
|
||||||
image: ghcr.io/revoltchat/server:20250210-1
|
image: ghcr.io/revoltchat/server:20250210-1
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
- database
|
||||||
condition: service_healthy
|
- redis
|
||||||
redis:
|
- rabbit
|
||||||
condition: service_started
|
environment:
|
||||||
rabbit:
|
- HOSTNAME
|
||||||
condition: service_healthy
|
- REVOLT_PUBLIC_URL
|
||||||
|
- INVITE_ONLY_ENABLED
|
||||||
|
- EMAIL_VERIFICATION_ENABLED
|
||||||
|
- SMTP_HOST
|
||||||
|
- SMTP_USERNAME
|
||||||
|
- SMTP_FROM_ADDRESS
|
||||||
|
- SMTP_REPLY_TO
|
||||||
|
- SMTP_PORT
|
||||||
|
- SMTP_USE_TLS
|
||||||
|
- SECURITY_CAPTCHA_ENABLED
|
||||||
|
- SECURITY_CLAMV_HOST
|
||||||
|
- NOTIFICATIONS_WEBOOKS_ENABLED
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_PUSH_NOTIF
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_ENABLED
|
||||||
|
- NOTIFICATIONS_FCM_ENABLED
|
||||||
|
- NOTIFICATIONS_APN_ENABLED
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.api.loadbalancer.server.port=14702"
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.api.rule=Host(`${DOMAIN}`) && PathPrefix(`/api`)"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.api.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.api.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "traefik.http.middlewares.api-stripprefix.stripprefix.prefixes=/api"
|
||||||
|
- "traefik.http.routers.api.middlewares=api-stripprefix"
|
||||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.8.2"
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.8.2"
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
|
secrets:
|
||||||
|
- file_encrypt_token
|
||||||
|
- public_key
|
||||||
|
- private_key
|
||||||
|
- rabbit_password
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
||||||
|
|
||||||
database:
|
database:
|
||||||
image: docker.io/mongo
|
image: docker.io/mongo
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- db:/data/db
|
- db:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -43,19 +64,20 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/eqalpha/keydb
|
image: docker.io/eqalpha/keydb:x86_64_v6.3.4
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
rabbit:
|
rabbit:
|
||||||
image: docker.io/rabbitmq:4
|
image: docker.io/rabbitmq:4.1.0
|
||||||
restart: always
|
|
||||||
environment:
|
environment:
|
||||||
RABBITMQ_DEFAULT_USER: rabbituser
|
RABBITMQ_DEFAULT_USER: rabbituser
|
||||||
RABBITMQ_DEFAULT_PASS: rabbitpass
|
RABBITMQ_DEFAULT_PASS: rabbitpass
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/rabbit:/var/lib/rabbitmq
|
- rabbit:/var/lib/rabbitmq
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: rabbitmq-diagnostics -q ping
|
test: rabbitmq-diagnostics -q ping
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@ -65,11 +87,12 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: docker.io/minio/minio
|
image: docker.io/minio/minio:RELEASE.2025-04-22T22-12-26Z
|
||||||
command: server /data
|
command: server /data
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/minio:/data
|
- minio:/data
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: minioautumn
|
MINIO_ROOT_USER: minioautumn
|
||||||
MINIO_ROOT_PASSWORD: minioautumn
|
MINIO_ROOT_PASSWORD: minioautumn
|
||||||
@ -77,77 +100,166 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
events:
|
events:
|
||||||
image: ghcr.io/revoltchat/bonfire:20250210-1
|
image: ghcr.io/revoltchat/bonfire:20250210-1
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
- database
|
||||||
condition: service_healthy
|
- redis
|
||||||
redis:
|
environment:
|
||||||
condition: service_started
|
- HOSTNAME
|
||||||
|
- REVOLT_PUBLIC_URL
|
||||||
|
- INVITE_ONLY_ENABLED
|
||||||
|
- EMAIL_VERIFICATION_ENABLED
|
||||||
|
- SMTP_HOST
|
||||||
|
- SMTP_USERNAME
|
||||||
|
- SMTP_FROM_ADDRESS
|
||||||
|
- SMTP_REPLY_TO
|
||||||
|
- SMTP_PORT
|
||||||
|
- SMTP_USE_TLS
|
||||||
|
- SECURITY_CAPTCHA_ENABLED
|
||||||
|
- SECURITY_CLAMV_HOST
|
||||||
|
- NOTIFICATIONS_WEBOOKS_ENABLED
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_PUSH_NOTIF
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_ENABLED
|
||||||
|
- NOTIFICATIONS_FCM_ENABLED
|
||||||
|
- NOTIFICATIONS_APN_ENABLED
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.services.events.loadbalancer.server.port=14703"
|
||||||
|
- "traefik.http.routers.events.rule=Host(`${DOMAIN}`) && PathPrefix(`/ws`)"
|
||||||
|
- "traefik.http.routers.events.entrypoints=web-secure"
|
||||||
|
- "traefik.http.routers.events.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "traefik.http.middlewares.ws-stripprefix.stripprefix.prefixes=/ws"
|
||||||
|
- "traefik.http.routers.events.middlewares=ws-stripprefix"
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/revoltchat/client:1.0.1
|
image: ghcr.io/revoltchat/client:1.0.1
|
||||||
|
environment:
|
||||||
|
- HOSTNAME
|
||||||
|
- REVOLT_PUBLIC_URL
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.services.web.loadbalancer.server.port=5000"
|
||||||
|
- "traefik.http.routers.web.rule=Host(`${DOMAIN}`) && !PathPrefix(`/api`, `/ws`, `/autumn`, `/january`)"
|
||||||
|
- "traefik.http.routers.web.entrypoints=web-secure"
|
||||||
|
- "traefik.http.routers.web.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "traefik.http.routers.web.priority=1"
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
|
||||||
autumn:
|
autumn:
|
||||||
image: ghcr.io/revoltchat/autumn:20250210-1
|
image: ghcr.io/revoltchat/autumn:20250210-1
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
- database
|
||||||
condition: service_healthy
|
- createbuckets
|
||||||
createbuckets:
|
environment:
|
||||||
condition: service_started
|
- HOSTNAME
|
||||||
|
- REVOLT_PUBLIC_URL
|
||||||
|
- INVITE_ONLY_ENABLED
|
||||||
|
- EMAIL_VERIFICATION_ENABLED
|
||||||
|
- SMTP_HOST
|
||||||
|
- SMTP_USERNAME
|
||||||
|
- SMTP_FROM_ADDRESS
|
||||||
|
- SMTP_REPLY_TO
|
||||||
|
- SMTP_PORT
|
||||||
|
- SMTP_USE_TLS
|
||||||
|
- SECURITY_CAPTCHA_ENABLED
|
||||||
|
- SECURITY_CLAMV_HOST
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.services.autumn.loadbalancer.server.port=14704"
|
||||||
|
- "traefik.http.routers.autumn.rule=Host(`${DOMAIN}`) && PathPrefix(`/autumn`)"
|
||||||
|
- "traefik.http.routers.autumn.entrypoints=web-secure"
|
||||||
|
- "traefik.http.routers.autumn.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "traefik.http.middlewares.autumn-stripprefix.stripprefix.prefixes=/autumn"
|
||||||
|
- "traefik.http.routers.autumn.middlewares=autumn-stripprefix"
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
|
||||||
# Metadata and image proxy
|
|
||||||
january:
|
january:
|
||||||
image: ghcr.io/revoltchat/january:20250210-1
|
image: ghcr.io/revoltchat/january:20250210-1
|
||||||
|
environment:
|
||||||
|
- HOSTNAME
|
||||||
|
- REVOLT_PUBLIC_URL
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.services.january.loadbalancer.server.port=14705"
|
||||||
|
- "traefik.http.routers.january.rule=Host(`${DOMAIN}`) && PathPrefix(`/january`)"
|
||||||
|
- "traefik.http.routers.january.entrypoints=web-secure"
|
||||||
|
- "traefik.http.routers.january.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
|
- "traefik.http.middlewares.january-stripprefix.stripprefix.prefixes=/january"
|
||||||
|
- "traefik.http.routers.january.middlewares=january-stripprefix"
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
|
||||||
# Regular task daemon
|
|
||||||
crond:
|
crond:
|
||||||
image: ghcr.io/revoltchat/crond:20250210-1-debug
|
image: ghcr.io/revoltchat/crond:20250210-1-debug
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
- database
|
||||||
condition: service_healthy
|
- minio
|
||||||
minio:
|
environment:
|
||||||
condition: service_started
|
- HOSTNAME
|
||||||
|
- REVOLT_PUBLIC_URL
|
||||||
|
- INVITE_ONLY_ENABLED
|
||||||
|
- EMAIL_VERIFICATION_ENABLED
|
||||||
|
- SMTP_HOST
|
||||||
|
- SMTP_USERNAME
|
||||||
|
- SMTP_FROM_ADDRESS
|
||||||
|
- SMTP_REPLY_TO
|
||||||
|
- SMTP_PORT
|
||||||
|
- SMTP_USE_TLS
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
# Push notification daemon
|
|
||||||
pushd:
|
pushd:
|
||||||
image: ghcr.io/revoltchat/pushd:20250210-1
|
image: ghcr.io/revoltchat/pushd:20250210-1
|
||||||
depends_on:
|
depends_on:
|
||||||
database:
|
- database
|
||||||
condition: service_healthy
|
- redis
|
||||||
redis:
|
- rabbit
|
||||||
condition: service_started
|
environment:
|
||||||
rabbit:
|
- HOSTNAME
|
||||||
condition: service_healthy
|
- REVOLT_PUBLIC_URL
|
||||||
|
- NOTIFICATIONS_WEBOOKS_ENABLED
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_PUSH_NOTIF
|
||||||
|
- NOTIFICATIONS_MASS_MENTIONS_ENABLED
|
||||||
|
- NOTIFICATIONS_FCM_ENABLED
|
||||||
|
- NOTIFICATIONS_APN_ENABLED
|
||||||
configs:
|
configs:
|
||||||
- source: revolt_toml
|
- source: revolt_toml
|
||||||
target: /Revolt.toml
|
target: /Revolt.toml
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
createbuckets:
|
createbuckets:
|
||||||
image: docker.io/minio/mc
|
image: docker.io/minio/mc
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -160,15 +272,24 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
internal:
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
minio:
|
||||||
|
rabbit:
|
||||||
|
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
revolt_toml:
|
revolt_toml:
|
||||||
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_revolt_toml_${REVOLT_TOML_VERSION}
|
||||||
file: Revolt.toml.tmpl
|
file: Revolt.toml.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
file_encrypt_token:
|
file_encrypt_token:
|
||||||
@ -183,6 +304,3 @@ secrets:
|
|||||||
rabbit_password:
|
rabbit_password:
|
||||||
name: ${STACK_NAME}_rabbit_password_${SECRET_RABBIT_PASSWORD_VERSION}
|
name: ${STACK_NAME}_rabbit_password_${SECRET_RABBIT_PASSWORD_VERSION}
|
||||||
external: true
|
external: true
|
||||||
smtp_password:
|
|
||||||
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
|
|
||||||
external: true
|
|
Reference in New Issue
Block a user