Adding support guide for mysql with docker #1664
Closed
nakulnagariy
started this conversation in
Show and tell
Replies: 1 comment
-
|
@nakulnagariy thank you for the guide! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This could be just basics to many of you but it was a lot of exploration for me so just wanted to share my work.
If you were wanted to go with MySQL instead of
postgresDB, changes can be done after you follow the complete guide given here.Once you have done all the steps you should have a running app.

If you make it till here, it just requires a couple of changes to switch from
postgrestoMySql.change the
docker-compose.ymlto the following:just make sure, you have the the available port for sql if not change it to something else
eg. 3333.envdocker-compose.ymlAfter you done with the above setup try to run the docker with the following script:
your all three services should be running like below.
Once your services are up and running, you almost half way through already.
Now install Mysql client.
Now delete the already generated migration file. and generate a new one with below script.
Run migrations
Run seeds
Run app in dev mode
Open http://localhost:3000
To setup Adminer
Open the running port in your browser.
Open http://localhost:8080
Running App SS:


Now you're all set for your project.
Beta Was this translation helpful? Give feedback.
All reactions