fix: renombrar a compose.yaml y quitar image para Dockge
This commit is contained in:
parent
19aaeb8619
commit
4193336775
2 changed files with 10 additions and 9 deletions
18
README.md
18
README.md
|
|
@ -40,15 +40,17 @@ Configura la URL del webhook en `public/config.js` (runtime) o `.env`
|
||||||
|
|
||||||
## Docker (Dockge)
|
## Docker (Dockge)
|
||||||
|
|
||||||
|
El archivo de compose es `compose.yaml` (nombre que Dockge reconoce por defecto).
|
||||||
|
En Dockge: crea un stack llamado `webchatv2` y copia el contenido del repo en su
|
||||||
|
carpeta (`~/.dockge/stacks/webchatv2/`), o clona el repo ahí. Dockge detectará el
|
||||||
|
`compose.yaml` y podrás levantar/compilar desde la UI.
|
||||||
|
|
||||||
|
Por CLI equivalente:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d --build
|
docker compose -f compose.yaml up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
Expone el sitio en `http://localhost:8080`. Para cambiar la URL del webhook sin
|
Expone el sitio en `http://localhost:8080`. Para cambiar la URL del webhook sin
|
||||||
reconstruir, edita el `config.js` servido por nginx
|
reconstruir, edita `public/config.js` del repo (ya montado como volumen en
|
||||||
(`/usr/share/nginx/html/config.js`) o monta un volumen:
|
`/usr/share/nginx/html/config.js`) y recarga la página.
|
||||||
|
|
||||||
```yaml
|
|
||||||
volumes:
|
|
||||||
- ./config.js:/usr/share/nginx/html/config.js:ro
|
|
||||||
```
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
services:
|
services:
|
||||||
chat-ui:
|
chat-ui:
|
||||||
build: .
|
build: .
|
||||||
image: webchatv2:latest
|
|
||||||
container_name: webchatv2
|
container_name: webchatv2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue