From 55a6384aa3bd8f6601788c357bab6cca2413813e Mon Sep 17 00:00:00 2001 From: dominikhoebert <42839893+dominikhoebert@users.noreply.github.com> Date: Sun, 28 Jul 2024 21:45:23 +0200 Subject: [PATCH] dawarich --- README.md | 2 + dawarich/compose.yml | 92 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 dawarich/compose.yml diff --git a/README.md b/README.md index 2ee2a66..eeee162 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ - netdata - demo: https://app.netdata.cloud/spaces/netdata-demo/rooms/all-nodes - stirlingpdf +- redis ### add to readme and homepage @@ -58,6 +59,7 @@ - postgres15 - dbgate - databases +- dawarich ## Tools diff --git a/dawarich/compose.yml b/dawarich/compose.yml new file mode 100644 index 0000000..fbc4f6c --- /dev/null +++ b/dawarich/compose.yml @@ -0,0 +1,92 @@ +# https://github.com/Freika/dawarich + +# import your location history from Google Maps Timeline and Owntracks, view it on a map and see some statistics, such as the number of countries and cities visited, and distance traveled + +name: dawarich + +services: + redis: + image: redis:7.0-alpine + command: redis-server + container_name: redis + volumes: + - shared_data:/var/shared/redis + postgres14: + image: postgres:14.2-alpine + container_name: postgres14 + volumes: + - db_data:/var/lib/postgresql/data + - shared_data:/var/shared + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: password + dawarich: + image: freikin/dawarich:latest + container_name: dawarich + volumes: + - gem_cache:/usr/local/bundle/gems + - public:/var/app/public + ports: + - 3007:3000 + stdin_open: true + tty: true + entrypoint: dev-entrypoint.sh + command: ['bin/dev'] + restart: on-failure + environment: + RAILS_ENV: development + REDIS_URL: redis://redis:6379/0 + DATABASE_HOST: postgres14 + DATABASE_USERNAME: postgres + DATABASE_PASSWORD: password + DATABASE_NAME: dawarich + MIN_MINUTES_SPENT_IN_CITY: 60 + APPLICATION_HOST: localhost + APPLICATION_HOSTS: localhost + TIME_ZONE: Europe/Vienna + APPLICATION_PROTOCOL: http + logging: + driver: "json-file" + options: + max-size: "100m" + max-file: "5" + depends_on: + - postgres14 + - redis + sidekiq: + image: freikin/dawarich:latest + container_name: sidekiq + volumes: + - gem_cache:/usr/local/bundle/gems + - public:/var/app/public + stdin_open: true + tty: true + entrypoint: dev-entrypoint.sh + command: ['sidekiq'] + restart: on-failure + environment: + RAILS_ENV: development + REDIS_URL: redis://redis:6379/0 + DATABASE_HOST: postgres14 + DATABASE_USERNAME: postgres + DATABASE_PASSWORD: password + DATABASE_NAME: dawarich + APPLICATION_HOST: localhost + APPLICATION_HOSTS: localhost + BACKGROUND_PROCESSING_CONCURRENCY: 10 + APPLICATION_PROTOCOL: http + logging: + driver: "json-file" + options: + max-size: "100m" + max-file: "5" + depends_on: + - postgres14 + - redis + - dawarich + +volumes: + db_data: + gem_cache: + shared_data: + public: \ No newline at end of file