How to edit Revolt.toml on Docker? #58

Closed
opened 2026-02-16 12:51:17 -05:00 by yindo · 5 comments
Owner

Originally created by @fvlasie on GitHub (Jun 25, 2024).

I can't find the Revolt.toml file in any of the docker containers. Does anyone know how to edit Revolt.toml on a docker deployment? Thank you!

Originally posted by @fvlasie in https://github.com/revoltchat/self-hosted/issues/82#issuecomment-2188215277

Originally created by @fvlasie on GitHub (Jun 25, 2024). I can't find the Revolt.toml file in any of the docker containers. Does anyone know how to edit Revolt.toml on a docker deployment? Thank you! _Originally posted by @fvlasie in https://github.com/revoltchat/self-hosted/issues/82#issuecomment-2188215277_
yindo closed this issue 2026-02-16 12:51:17 -05:00
Author
Owner

@fvlasie commented on GitHub (Jun 25, 2024):

I am trying to solve the problem of url: "ws://local.revolt.chat/ws"
showing in console.

@fvlasie commented on GitHub (Jun 25, 2024): I am trying to solve the problem of url: "ws://local.revolt.chat/ws" showing in console.
Author
Owner

@liqingyou commented on GitHub (Jun 27, 2024):

same

@liqingyou commented on GitHub (Jun 27, 2024): same
Author
Owner

@jquiaios commented on GitHub (Jun 30, 2024):

I had the same problem and here is how I could make it work.

You need to download the file Revolt.toml and put it at the same level as the docker-compose.yml file.
If you host revolt on an external server, you need to modify your Revolt.toml file to adapt all your URLs.

After that, you modify the docker-compose,yml file to add this Revolt.toml file as a volume for both containers api and events, something like this:

# API server (delta)
api:
  image: ghcr.io/revoltchat/server:latest
  env_file: .env
  depends_on:
    - database
    - redis
    - caddy
  restart: always
  volumes:
    - ./Revolt.toml:/Revolt.toml

# Events service (quark)
events:
  image: ghcr.io/revoltchat/bonfire:latest
  env_file: .env
  depends_on:
    - database
    - redis
    - caddy
  restart: always
  volumes:
    - ./Revolt.toml:/Revolt.toml

Then you docker compose up -d to restart those two containers, and you should be good.

@jquiaios commented on GitHub (Jun 30, 2024): I had the same problem and here is how I could make it work. You need to download the file [Revolt.toml](https://github.com/revoltchat/backend/blob/main/crates/core/config/Revolt.toml) and put it at the same level as the `docker-compose.yml` file. If you host revolt on an external server, you need to modify your Revolt.toml file to adapt all your URLs. After that, you modify the `docker-compose,yml` file to add this Revolt.toml file as a volume for both containers `api` and `events`, something like this: ``` # API server (delta) api: image: ghcr.io/revoltchat/server:latest env_file: .env depends_on: - database - redis - caddy restart: always volumes: - ./Revolt.toml:/Revolt.toml # Events service (quark) events: image: ghcr.io/revoltchat/bonfire:latest env_file: .env depends_on: - database - redis - caddy restart: always volumes: - ./Revolt.toml:/Revolt.toml ``` Then you `docker compose up -d` to restart those two containers, and you should be good.
Author
Owner

@fvlasie commented on GitHub (Jul 5, 2024):

Thank you very much for your help. I tried what you recommended but I just get a blank page when accessing the server URL through the browser.

[root@server revolt]# curl -v localhost
* Rebuilt URL to: localhost/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: Caddy
< Date: Sat, 06 Jul 2024 03:30:51 GMT
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
@fvlasie commented on GitHub (Jul 5, 2024): Thank you very much for your help. I tried what you recommended but I just get a blank page when accessing the server URL through the browser. ``` [root@server revolt]# curl -v localhost * Rebuilt URL to: localhost/ * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 80 (#0) > GET / HTTP/1.1 > Host: localhost > User-Agent: curl/7.61.1 > Accept: */* > < HTTP/1.1 200 OK < Server: Caddy < Date: Sat, 06 Jul 2024 03:30:51 GMT < Content-Length: 0 < * Connection #0 to host localhost left intact ```
Author
Owner

@fvlasie commented on GitHub (Jul 6, 2024):

Sorry, I was being dumb! I did not set the custom domain in .env. It is all working now!

Thanks @jquiaios You are a wonderful person! :)

@fvlasie commented on GitHub (Jul 6, 2024): Sorry, I was being dumb! I did not set the custom domain in .env. It is all working now! Thanks @jquiaios You are a wonderful person! :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/self-hosted#58