Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added timescale db, and a default cheetah server #46

Merged
merged 6 commits into from
Jan 11, 2024
Merged
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CHEETAH_DOCKER_REGISTRY=ghcr.io/trifork/
COMPOSE_PROJECT_NAME=cheetah-infrastructure
COMPOSE_PATH_SEPARATOR=:
COMPOSE_FILE=docker-compose.yaml:docker-compose/kafka.yaml:docker-compose/os.yaml:docker-compose/observability.yaml:docker-compose/keycloak.yaml
COMPOSE_FILE=docker-compose.yaml:docker-compose/kafka.yaml:docker-compose/os.yaml:docker-compose/observability.yaml:docker-compose/keycloak.yaml:docker-compose/timescaledb.yaml
COMPOSE_PROFILES=opensearch,kafka,oauth,redpanda,schemaregistry,opensearch_dashboard

INITIAL_KAFKA_TOPICS=JobNameInputTopic
Expand Down
14 changes: 14 additions & 0 deletions config/pgadmin/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Servers": {
"1": {
"Name": "cheetah",
"Group": "Servers",
"Port": 5432,
"Username": "timescaledb",
"Host": "timescaledb",
"SSLMode": "prefer",
"MaintenanceDB": "postgres",
"PassFile": "/pgadmin4/pgpass"
}
}
}
41 changes: 41 additions & 0 deletions docker-compose/timescaledb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
services:

Check warning on line 1 in docker-compose/timescaledb.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

1:1 [document-start] missing document start "---"
timescaledb:
image: timescale/timescaledb:latest-pg12
restart: unless-stopped
mem_limit: 1024m
ports:
- 5432:5432
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: timescaledb
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- timescaledb:/var/lib/postgresql/data
profiles:
- timescale
- full

Check failure on line 17 in docker-compose/timescaledb.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

17:1 [trailing-spaces] trailing spaces
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./config/pgadmin/servers.json:/pgadmin4/servers.json
profiles:
- timescale
- full

networks:
default:
name: "cheetah-infrastructure"

volumes:
timescaledb:
pgadmin-data:

Check failure on line 41 in docker-compose/timescaledb.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

41:16 [new-line-at-end-of-file] no new line character at the end of file
24 changes: 13 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,22 @@ curl -k -s -H "Authorization: Bearer $ACCESS_TOKEN" $OPENSEARCH_URL/_cat/indices
- kafka
- opensearch
- observability
- timescale

Here is further explanation on what each profile starts.

| Images / profiles | kafka-core | opensearch-core | schema-registry-core | core | kafka | opensearch | observability | full |
| :-------------------: | :---------: | :-------------: | :-------------------: | :---: | :---: | :---------: | :-----------: | :---: |
| Keycloak | x | x | x | x | x | x | x | x |
| Kafka | x | | x | x | x | | x | x |
| Redpanda console | | | | | x | | | x |
| Opensearch | | x | | x | | x | | x |
| Opensearch dashboard | | | | | | x | | x |
| Opensearch configurer | | x | | x | | x | | x |
| Schema registry | | | x | x | x | | | x |
| Prometheus | | | | | | | x | x |
| Grafana | | | | | | | x | x |
| Images / profiles | kafka-core | opensearch-core | schema-registry-core | core | kafka | opensearch | observability | timescale | full |
| :-------------------: | :---------: | :-------------: | :-------------------: | :---: | :---: | :---------: | :-----------: | | :---: |
| Keycloak | x | x | x | x | x | x | x | | x |
| Kafka | x | | x | x | x | | x | | x |
| Redpanda console | | | | | x | | | | x |
| Opensearch | | x | | x | | x | | | x |
| Opensearch dashboard | | | | | | x | | | x |
| Opensearch configurer | | x | | x | | x | | | x |
| Schema registry | | | x | x | x | | | | x |
| Prometheus | | | | | | | x | | x |
| Grafana | | | | | | | x | | x |
| Timescale | | | | | | | x | | x |

## Keycloak

Expand Down
Loading