Skip to content

Commit

Permalink
build: move openobserve compose setup to contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 22, 2024
1 parent fbac238 commit 85c62c4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ run-without-central:
run-with-josm:
docker compose \
-f docker-compose.yml \
-f josm/docker-compose.yml \
-f contrib/josm/docker-compose.yml \
up -d
up -d

stop:
Expand Down Expand Up @@ -94,7 +95,7 @@ docs-pdf:
MDS := \
docs/dev/Backend.md \
docs/dev/Database-Tips.md \
docs/dev/Deployment-Flow.md \
docs/dev/Release-Cycle.md \
docs/dev/Frontend.md \
docs/dev/Production.md \
docs/dev/Version-Control.md \
Expand Down
49 changes: 49 additions & 0 deletions contrib/openobserve/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright (c) 2022, 2023 Humanitarian OpenStreetMap Team
# This file is part of FMTM.
#
# FMTM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FMTM 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FMTM. If not, see <https:#www.gnu.org/licenses/>.
#

volumes:
fmtm_monitoring_data:
name: fmtm-monitoring-data-${GIT_BRANCH:-local}

networks:
fmtm-net:
name: fmtm-${GIT_BRANCH:-local}

services:
openobserve:
image: public.ecr.aws/zinclabs/openobserve:latest
environment:
ZO_ROOT_USER_EMAIL: ${OPENOBSERVE_USER}
ZO_ROOT_USER_PASSWORD: ${OPENOBSERVE_PASSWORD}
# Keep data 90 days
ZO_COMPACT_DATA_RETENTION_DAYS: ${OPENOBSERVE_RETENTION_DAYS}
# S3 config
# ZO_LOCAL_MODE_STORAGE: s3
# ZO_S3_SERVER_URL: ${S3_xx}
# ZO_S3_REGION_NAME: us-west-1
# ZO_S3_ACCESS_KEY: ${S3_xx}
# ZO_S3_SECRET_KEY: ${S3_xx}
# ZO_S3_BUCKET_NAME: ${S3_xx}
# ZO_S3_PROVIDER: s3
ports:
- "5080:5080"
volumes:
- fmtm_monitoring_data:/data
networks:
- fmtm-net
restart: unless-stopped
# TODO add healthcheck
File renamed without changes.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ nav:
- Backend: dev/Backend.md
- Frontend: dev/Frontend.md
- Production Deployment: dev/Production.md
- Deployment Flow: dev/Deployment-Flow.md
- Release Cycle: dev/Release-Cycle.md
- Database Tips: dev/Database-Tips.md
- Troubleshooting: dev/Troubleshooting.md
- Pre-Commit: https://docs.hotosm.org/dev-guide/pre-commit/
Expand Down

0 comments on commit 85c62c4

Please sign in to comment.