Simply build with `docker build -t xmysql .` and run with `docker run -p 3000:3000 -d xmysql`
Simply run with `docker run -p 3000:3000 -d markuman/xmysql`
The best way for testing is to run mysql in a docker container too and create a docker network, so that `xmysql` can access the `mysql` container with a name from docker network.
The best way for testing is to run mysql in a docker container too and create a docker network, so that `xmysql` can access the `mysql` container with a name from docker network.
1. Create network
1. Create network
* `docker network create mynet`
* `docker network create mynet`
2. Start mysql with docker name `some-mysql` and bind to docker network `mynet`
2. Start mysql with docker name `some-mysql` and bind to docker network `mynet`
You can also pass the environment variables to a file and use them as an option with docker like `docker run --env-file ./env.list -p 3000:3000 --net mynet -d xmysql`
You can also pass the environment variables to a file and use them as an option with docker like `docker run --env-file ./env.list -p 3000:3000 --net mynet -d markuman/xmysql`