Statping: Env variables doesn't work with docker

Created on 9 May 2020  路  6Comments  路  Source: statping/statping

Describe the bug

My docker-compose.yml file is inspired by your docker-compose.yml and docker-compose.lite.yml files.

Edit ADMIN_USER or ADMIN_PASS variables doesn't work.
The account stay with default values => admin:admin

Even if I try to edit DESCRIPTION variable, description stay with default value => "Statping Sample Data".

To Reproduce

# docker-compose.yml

version: '3.7'

services:
  statping:
    image: statping/statping:v0.90.37
    ports:
      - 8080:8080
    environment:
      DB_CONN: sqlite
      PORT: 8080
      API_SECRET: exampleapisecret
      NAME: Statping on SQLite
      DOMAIN: http://localhost:8080
      DESCRIPTION: This is a dev environment on SQLite!
      ADMIN_USER: admin
      ADMIN_PASS: password

Expected Behavior

Change admin password and other env variables like DESCRIPTION.

Slack GitHub release Build Status

bug stale

All 6 comments

Related to #520

Experiencing this problem on the same version.
The env variables I set have no effect and StatPing loads default samples to my instance (INFO[0013] Adding Sample records to service #1).

I'll look into this.

This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.

Is this one fixed?

We've found on Statping v0.90.74, if you have some environment variables set, but not DB_CONN then the other environment variables will not take effect.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bottoy picture bottoy  路  5Comments

itsmylife44 picture itsmylife44  路  5Comments

majodev picture majodev  路  6Comments

iandk picture iandk  路  7Comments

hurriyetgiray-ping picture hurriyetgiray-ping  路  5Comments