feat: Add new dockerized web container

This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
pull/196/head
Jacob Schlecht 7 months ago
parent 65fb348a6a
commit 010ae2ca63

@ -101,12 +101,6 @@ services:
target: /Revolt.toml
restart: always
# Web App
web:
image: ghcr.io/revoltchat/client:master
restart: always
env_file: .env.web
# File server
autumn:
image: ghcr.io/stoatchat/file-server:v0.11.1
@ -209,8 +203,7 @@ services:
"
# Web App
# Commented out for now, waiting on official image
# web:
# image: ghcr.io/stoatchat/for-web:v0.3.0
# restart: always
# env_file: .env.web
web:
image: ghcr.io/stoatchat/for-web:6c5970f
restart: always
env_file: .env.web

@ -1,8 +1,12 @@
#!/usr/bin/env bash
# set hostname for Caddy
# set hostname for Caddy and vite variables
echo "HOSTNAME=https://$1" > .env.web
echo "REVOLT_PUBLIC_URL=https://$1/api" >> .env.web
echo "VITE_API_URL=https://$1/api"
echo "VITE_WS_URL=wss://$1/ws"
echo "VITE_MEDIA_URL=https://$1/autumn"
echo "VITE_PROXY_URL=https://$1/january"
# hostnames
echo "[hosts]" >> Revolt.toml

Loading…
Cancel
Save