diff --git a/.env.example b/.env.example index d467104b8..ea62901e0 100644 --- a/.env.example +++ b/.env.example @@ -2,15 +2,17 @@ # These are just the variable you have to set to be up and running. # There is many more variable you could set. Check them out here: https://docs.endurain.com/getting-started/advanced-started/#supported-environment-variables -DB_PASSWORD=changeme -POSTGRES_PASSWORD=changeme +DB_PASSWORD=changeme # Set a strong password here. Check if there are no trailing whitespaces in the beginning and end. Must be the same as POSTGRES_PASSWORD +POSTGRES_PASSWORD=changeme # Must be the same as DB_PASSWORD SECRET_KEY=changeme FERNET_KEY=changeme TZ=Europe/Lisbon ENDURAIN_HOST=https://endurain.example.com BEHIND_PROXY=true -POSTGRES_DB=endurain -POSTGRES_USER=endurain +POSTGRES_DB=endurain # If you change this, you also have to change DB_DATABASE +# DB_DATABASE=endurain # Uncomment and set it to the same as POSTGRES_DB if you change it +POSTGRES_USER=endurain # If you change this, you also have to change DB_USER +# DB_USER=endurain # Uncomment and set it to the same as POSTGRES_USER if you change it PGDATA=/var/lib/postgresql/data/pgdata # Email configuration (for password reset functionality) diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 11886556d..e284979fb 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -27,5 +27,5 @@ services: timeout: 5s retries: 5 volumes: - - /opt/endurain/postgres:/var/lib/postgresql/data + - /endurain/postgres:/var/lib/postgresql/data restart: unless-stopped diff --git a/frontend/app/src/components/Users/UserGoalsStatsComponent.vue b/frontend/app/src/components/Users/UserGoalsStatsComponent.vue index a43bcbbd3..f3b856cdb 100644 --- a/frontend/app/src/components/Users/UserGoalsStatsComponent.vue +++ b/frontend/app/src/components/Users/UserGoalsStatsComponent.vue @@ -43,7 +43,7 @@ }}{{ goal.goal_activities_number }} {{ $t('userGoalsStatsComponent.activities') }} {{ formatDistanceRaw(t, goal.total_distance, authStore.user.units) + >{{ formatDistanceRaw(t, goal.total_distance, authStore.user.units, false) }}{{ $t('generalItems.ofWithSpaces') }}{{ formatDistanceRaw(t, goal.goal_distance, authStore.user.units) }}