Skip to content

Commit

Permalink
Fix deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Jun 5, 2024
1 parent b1d3981 commit b67378b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tekst-Web/deploy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
redir {$TEKST_API_PATH:/api} {$TEKST_API_PATH:/api}/

handle_path {$TEKST_API_PATH:/api}/* {
reverse_proxy http://server:8000
reverse_proxy http://api:8000
}

handle_path /static/* {
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:

tekst-web:
web:
build:
context: ./Tekst-Web
target: prod
Expand All @@ -23,7 +23,7 @@ services:
networks:
- api

tekst-api:
api:
build:
context: ./Tekst-API
target: prod
Expand All @@ -36,7 +36,7 @@ services:
env_file: .env
networks:
- api
- db
- mongo
- es
secrets:
- tekst_security_init_admin_email
Expand All @@ -55,7 +55,7 @@ services:
- mongo_configdb:/data/configdb
- mongo_db:/data/db
networks:
- db
- mongo
secrets:
- tekst_db_user
- tekst_db_password
Expand Down Expand Up @@ -94,7 +94,7 @@ volumes:

networks:
api:
db:
mongo:
es:

secrets:
Expand Down
4 changes: 2 additions & 2 deletions docs/content/setup/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ sudo chmod u=rw,go= secrets/*
Build the docker images for the **Tekst-API** (server) and **Tekst-Web** (client) applications.

```sh
docker compose build tekst-api tekst-web
docker compose build api web
```

... now grab a (small) coffee ☕

!!! note

Whenever you decide to change one of `TEKST_WEB_PATH`, `TEKST_SERVER_URL` or `TEKST_API_PATH` in your `.env` file, you'll have to build the image for **Tekst-Web** (client) again (`docker compose build tekst-web`), as these values are statically replaced in the code during the build process!
Whenever you decide to change one of `TEKST_WEB_PATH`, `TEKST_SERVER_URL` or `TEKST_API_PATH` in your `.env` file, you'll have to build the image for **Tekst-Web** (client) again (`docker compose build web`), as these values are statically replaced in the code during the build process!

#### Running Tekst 🚀

Expand Down

0 comments on commit b67378b

Please sign in to comment.