R
R
RakoobrazniY2021-06-18 01:00:47
Docker
RakoobrazniY, 2021-06-18 01:00:47

How to configure RoR application launch via docker-compose?

Good day to all, I am gradually learning RoR and have reached the launch through docker-compose using the MySQL 5.7 database. I took an example of a download from here https://docs.docker.com/samples/rails/ , only changed it accordingly under MySQL. When launching rails, it gives an error. What could be the problem?

spoiler
ERROR: for db Cannot start service db: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/home/aleksey/prakt/prakt/config/my.cnf" to rootfs at "/etc/mysql/my.cnf" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
<
spoiler
60cbc527748f3983801031.png60cbc53376cdf120852235.png60cbc5397a0e2982720244.png60cbc53fb90da166626234.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2021-06-18
@Zarom

Looks like /home/aleksey/prakt/prakt/config/my.cnfit's a directory, not a file. Check and make sure that the configuration file is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question