ruby on rails - Adding sphinx container docker-compose shows an error -
i have ruby on rails project, want place containers( there database, redis , web(includes rails project) containers). want add search feature, added sphinx container in compose file docker-compose.yml
web: dockerfile: dockerfile-rails build: . command: bundle exec rails s -p 3000 -b '0.0.0.0' ports: - "3000:3000" links: - redis - db **- sphinx** environment: - redistogo_url=redis://user@redis:6379/ redis: image: redis **sphinx: image: centurylink/sphinx** db: dockerfile: dockerfile-db build: . env_file: .env_db docker-compose build works fine when run docke-compose up error: cannot start container 096410dafc86666dcf1ffd5f60ecc858760fb7a2b8f2352750f615957072d961: cannot link non running container: /metartaf_sphinx_1 /metartaf_web_1/sphinx_1 how can fix ?
according https://hub.docker.com/r/centurylink/sphinx/ sphinx container runs needs amount of configuration files run properly. see *daemonized usage (2). need data source files , configuration.
in test, fails start error:
fatal: no readable config file (looked in /usr/local/etc/sphinx.conf, ./sphinx.conf)
Comments
Post a Comment