Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

draft: task/179 add glitchtip #204

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ down:
clean: down
docker rmi sapphire --force

up: clean build
update:
docker stack deploy -c docker-compose.yaml sapphire

sleep:
ifeq ($(OSFLAG),WIN)
timeout /t 15
else
sleep 15
endif
docker stack deploy -c docker-compose.yaml sapphire

up: clean build sleep update
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ GRANT ALL PRIVILEGES ON DATABASE service_name TO service_name;
ALTER DATABASE service_name OWNER TO service_name;
```

Create database for glitchtip
```shell
CREATE ROLE glitchtip WITH LOGIN ENCRYPTED PASSWORD 'P@ssw0rd';
CREATE DATABASE glitchtip;
GRANT ALL PRIVILEGES ON DATABASE glitchtip TO glitchtip;
ALTER DATABASE glitchtip OWNER TO glitchtip;
```

For autotests you should install all autotests fixtures from every service: Users, Projects,
Notifications, Messenger
```shell
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ services:
deploy:
replicas: 1

glitchtip:
image: glitchtip/glitchtip
environment:
SECRET_KEY: secret_key
DATABASE_URL: ${GLITCHTIP_DB_DSN:-postgres://glitchtip:P@ssw0rd@database:5432/glitchtip}
GLITCHTIP_DOMAIN: ${GLITCHTIP_ROOT_URL:-http://localhost:3000/glitchtip}
GLITCHTIP_URL: ${GLITCHTIP_ROOT_URL:-http://localhost:3000/glitchtip}
PORT: 8000
deploy:
labels:
- "traefik.enable=true"
# - "traefik.http.middlewares.glitchtip-stripprefix.stripprefix.prefixes=${GLITCHTIP_ROOT_PATH:-/glitchtip}"
- "traefik.http.routers.glitchtip.rule=PathPrefix(`${GLITCHTIP_ROOT_PATH:-/glitchtip}`)"
# - "traefik.http.routers.glitchtip.middlewares=glitchtip-stripprefix"
- "traefik.http.routers.glitchtip.entrypoints=web"
- "traefik.http.routers.glitchtip-static.rule=PathPrefix(`/static`)"
- "traefik.http.routers.glitchtip-static.entrypoints=web"
- "traefik.http.services.glitchtip.loadbalancer.server.port=8000"
replicas: 1

zookeeper:
image: confluentinc/cp-zookeeper:7.5.0
user: 0:0
Expand Down