mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Update docker-compose.yml to use latest docker image and add missing env var
This commit is contained in:
parent
ad78af59ac
commit
a333458756
5 changed files with 7 additions and 8 deletions
|
|
@ -41,7 +41,7 @@ Copy the contents of the `docker-compose.yml` file to your server and run `docke
|
|||
## Environment variables
|
||||
|
||||
```
|
||||
MINIMUM_POINTS_IN_CITY — minimum number of points in a city to consider it as a city visited, eg. `10`
|
||||
CITY_VISIT_THRESHOLD — minimum minutes between two points to consider them as visited the same city, e.g. `60`
|
||||
MAP_CENTER — default map center, e.g. `55.7558,37.6176`
|
||||
TIME_ZONE — time zone, e.g. `Europe/Berlin`
|
||||
APPLICATION_HOST — host of the application, e.g. `localhost` or `dawarich.example.com`
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
|
||||
<div class="stat text-center">
|
||||
<div class="stat-value text-warning" onclick="countries_visited.showModal()">
|
||||
<div class="stat-value text-warning underline hover:no-underline hover:cursor-pointer" onclick="countries_visited.showModal()">
|
||||
<%= number_with_delimiter current_user.total_countries %>
|
||||
</div>
|
||||
<div class="stat-title">Countries visited</div>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
|
||||
<div class="stat text-center">
|
||||
<div class="stat-value" onclick="cities_visited.showModal()">
|
||||
<div class="stat-value hover:cursor-pointer hover:no-underline underline" onclick="cities_visited.showModal()">
|
||||
<%= current_user.total_cities %>
|
||||
</div>
|
||||
<div class="stat-title">Cities visited</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
MINIMUM_POINTS_IN_CITY = ENV.fetch('MINIMUM_POINTS_IN_CITY', 5).to_i
|
||||
CITY_VISIT_THRESHOLD = ENV.fetch('MINIMUM_POINTS_IN_CITY', 60).to_i
|
||||
MAP_CENTER = ENV.fetch('MAP_CENTER', '[55.7522, 37.6156]')
|
||||
REVERSE_GEOCODING_ENABLED = ENV.fetch('REVERSE_GEOCODING_ENABLED', 'true') == 'true'
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ services:
|
|||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
dawarich_app:
|
||||
image: freikin/dawarich:0.1.6.1
|
||||
image: freikin/dawarich:latest
|
||||
container_name: dawarich_app
|
||||
volumes:
|
||||
- gem_cache:/usr/local/bundle/gems
|
||||
|
|
@ -40,13 +40,13 @@ services:
|
|||
DATABASE_USERNAME: postgres
|
||||
DATABASE_PASSWORD: password
|
||||
DATABASE_NAME: dawarich_development
|
||||
MINIMUM_POINTS_IN_CITY: 5
|
||||
CITY_VISIT_THRESHOLD: 60
|
||||
APPLICATION_HOST: localhost
|
||||
depends_on:
|
||||
- dawarich_db
|
||||
- dawarich_redis
|
||||
dawarich_sidekiq:
|
||||
image: freikin/dawarich:0.1.6.1
|
||||
image: freikin/dawarich:latest
|
||||
container_name: dawarich_sidekiq
|
||||
volumes:
|
||||
- gem_cache:/usr/local/bundle/gems
|
||||
|
|
|
|||
Loading…
Reference in a new issue