-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from shantanoo-desai/develop
feat: QuestDB 7.x, data persistence
- Loading branch information
Showing
22 changed files
with
246 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ansible | ||
docker | ||
urllib3 < 2.0 # Pin this requirement to combat a current incompatibility with docker and urllib3 | ||
jsonschema | ||
passlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Komponist - Generate Your Favourite Compose Stack With the Least Effort | ||
# | ||
# Copyright (C) 2023 Shantanoo "Shan" Desai <sdes.softdev@gmail.com> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
# configure-questdb.yml: Tasks file that generates the settings and Compose service file for QuestDB | ||
--- | ||
- name: '(QuestDB) Generating Compose Service File for Deployment' | ||
ansible.builtin.template: | ||
src: services/docker-compose.questdb.yml.j2 | ||
dest: "{{ komponist.deploy_dir }}/docker-compose.questdb.yml" | ||
mode: "0755" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
templates/config/traefik/configurations/middlewares-http/questdb-mw.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
questdb-mw: | ||
stripPrefix: | ||
prefixes: | ||
- /questdb | ||
forceSlash: false |
7 changes: 7 additions & 0 deletions
7
templates/config/traefik/configurations/routers-http/questdb-health-router.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
questdb-http-health-router: | ||
entryPoints: | ||
- web | ||
middlewares: | ||
- questdb-mw | ||
service: questdb-svc-health | ||
rule: PathPrefix(`/questdb/healthz`) |
7 changes: 7 additions & 0 deletions
7
templates/config/traefik/configurations/routers-http/questdb-router.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
questdb-http-router: | ||
entryPoints: | ||
- web | ||
middlewares: | ||
- questdb-mw | ||
service: questdb-svc | ||
rule: PathPrefix(`/questdb`) |
5 changes: 5 additions & 0 deletions
5
templates/config/traefik/configurations/routers-http/questdb-ui-router.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
questdb-ui-router: | ||
entryPoints: | ||
- web | ||
service: questdb-svc | ||
rule: Host(`questdb.localhost`) |
4 changes: 4 additions & 0 deletions
4
templates/config/traefik/configurations/services-http/questdb-svc-health.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
questdb-svc-health: | ||
loadBalancer: | ||
servers: | ||
- url: http://questdb:9003 |
4 changes: 4 additions & 0 deletions
4
templates/config/traefik/configurations/services-http/questdb-svc.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
questdb-svc: | ||
loadBalancer: | ||
servers: | ||
- url: http://questdb:4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Komponist - Generate Your Favourite Compose Stack With the Least Effort | ||
# | ||
# Copyright (C) 2023 Shantanoo "Shan" Desai <sdes.softdev@gmail.com> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
{{ ansible_managed | comment }} | ||
|
||
{# docker-compose.questdb.yml.j2: Jinja2 Template for QuestDB Compose Service #} | ||
|
||
services: | ||
questdb: | ||
{% if 'image' in komponist.configuration.questdb %} | ||
image: {{ komponist.configuration.questdb.image }}:{{ komponist.configuration.questdb.version }} | ||
{% else %} | ||
image: docker.io/questdb/questdb:{{ komponist.configuration.questdb.version }} | ||
{% endif %} | ||
container_name: komponist_questdb | ||
environment: | ||
- QDB_SHARED_WORKER_COUNT=2 | ||
- QDB_HTTP_BIND_TO=0.0.0.0:4000 # use port 4000 to avoid conflicts with Portainer | ||
security_opt: | ||
- "no-new-privileges:true" | ||
volumes: | ||
- /etc/timezone:/etc/timezone:ro | ||
- /etc/localtime:/etc/localtime:ro | ||
{% if komponist.data_persistence | default(false) %} | ||
- questdb:/var/lib/questdb | ||
|
||
volumes: | ||
questdb: | ||
|
||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.