I am trying to create a docker compose network to run some experiments with joining time series data with meta data from a MySQL table. The thing I am running into is that I set up the compose file, boot it up and each time I have to reconfigure the login logic on the web gui. Additionally, I see issues trying to add line protocol data. I add the data which is manually typed, the message says that it was added successfully, but then it does not show up in data explorer.
I checked the MySQL container and it is persisting data after stopping the network and booting it back up. From what I can see it looks like I am having issues with the influx container. Here is my docker file:
version: '3'
services:
influx:
image: quay.io/influxdb/influxdb:2.0.0-rc
container_name: influxdb
ports:
- 8086:8086
volumes:
- C:\Dev\InfluxTesting\InfluxMySqlDocker\data\my-influxdb:/var/lib/influxdb
mysql:
image: mysql:latest
container_name: mysqldb
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: influx_test_db
ports:
- "3307:3306"
volumes:
- C:\Dev\InfluxTesting\InfluxMySqlDocker\data\my-mysqldb:/var/lib/mysql
I am using the influx 2.0.0-rc so I don’t know if that might be contributing. Any help would be appreciated.
Edit:
Just to update, the test data is writing. The issue still remains where I need to set up the account each time I run docker-compose up
and the data is not there when I do. So the issue does seem to be that we are not persisting data from one session into another.