Deploy influxdb on railway
- InfluxDB with automated setup
- InfluxDB UI
- Password Authentication (Set username & password in environment variables)
- Click Deploy on Railway and setup your credentials in the environment variables
DOCKER_INFLUXDB_INIT_USERNAME=yourusername # Minimum 5 characters
DOCKER_INFLUXDB_INIT_PASSWORD=yourpassword # Minimum 8 characters
DOCKER_INFLUXDB_INIT_ORG=yourorg # Minimum 5 characters
DOCKER_INFLUXDB_INIT_BUCKET=yourbucket # Minimum 5 characters
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=yourtoken # Minimum 50 characters
DOCKER_INFLUXDB_INIT_MODE=setup # Don't change this
PORT=8086 # Don't change this
- Wait for Build & Deployment to Finish
- Open the custom URL an enter your credentials
- When you configure your InfluxDB connection, use your custom URL as the host but be aware that the port is 443! Example:
https://demo-influxdb.up.railway.app:443
. - Use the token in the environment variables to authenticate
- Setup bucket name and organization name in the environment variables
- Use influxdb version 2.0 or above
If you find a bug in the template for railway, you can submit an issue to the GitHub Repository. Even better you can submit a Pull Request with a fix.
docker compose up -d
Connect to http://localhost:8086 use setup username & password from docker-compose file to login to influxdb.