Skip to content

Commit

Permalink
chore: fix default status page settings to make it usable out-of-the-box
Browse files Browse the repository at this point in the history
Fixes the example config file and the Dockerfile, now the app works with the provided docker-compose file.
  • Loading branch information
Data5tream committed Jun 26, 2023
1 parent 67b3021 commit 4ce9caa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RUN npm install -g pnpm
COPY frontend .
RUN pnpm i
ENV NODE_ENV=production
ENV PUBLIC_API_URL=""
RUN pnpm run build

FROM rust:1.68 AS backend
Expand Down
9 changes: 5 additions & 4 deletions config_example.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[webserver]
host = "127.0.0.1"
host = "0.0.0.0"
port = 8080
url = "http://localhost"

[redis]
url = "redis://127.0.0.1:6379/0"
url = "redis://redis:6379/0"

[watcher]
interval = 30
Expand All @@ -12,5 +13,5 @@ watchlist = [
]

[log]
level = "debug"
path = "test.log"
level = "info"
path = "/var/log/status-page.log"
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
version: '3'

services:
redis:
image: redis:alpine
networks:
- backend
app:
image: ghcr.io/data5tream/status-page-test:latest
image: ghcr.io/data5tream/simple-status-page:latest
ports:
- 8080:8080
- "8080:8080"
networks:
- default
- backend
volumes:
- ./config.toml:/config.toml
- ./config.toml:/config.toml:ro
networks:
default:
backend:

0 comments on commit 4ce9caa

Please sign in to comment.