2024-07-28 21:45:23 +02:00
# 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
2024-07-29 20:31:23 +02:00
# Default credentials user@domain.com/password
2024-07-28 21:45:23 +02:00
name : dawarich
services :
redis :
image : redis:7.0-alpine
command : redis-server
container_name : redis
volumes :
- shared_data:/var/shared/redis
2024-07-30 15:53:31 +02:00
networks :
- proxy
2024-07-28 21:45:23 +02:00
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
2024-07-30 15:53:31 +02:00
networks :
- proxy
2024-07-28 21:45:23 +02:00
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
2024-07-30 15:53:31 +02:00
command : [ 'bin/dev' ]
2024-07-28 21:45:23 +02:00
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
2024-07-30 15:53:31 +02:00
networks :
- proxy
2024-07-28 21:45:23 +02:00
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
2024-07-30 15:53:31 +02:00
command : [ 'sidekiq' ]
2024-07-28 21:45:23 +02:00
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
2024-07-30 15:53:31 +02:00
networks :
- proxy
networks :
proxy :
external : true
2024-07-28 21:45:23 +02:00
volumes :
db_data :
gem_cache :
shared_data :
2024-07-30 15:53:31 +02:00
public :