Hello I'm trying to dockerize my application. It uses thinking sphinx and I have trouble configuring it.
In particular, I can't configure it to have a reliable link to container with database. This is my current *config/thinking_sphinx.yml* file: development: &common min_infix_len: 1 charset_table: "0..9, english, U+0021..U+002F" port: 9306 address: 172.17.0.1 # sql_host: db # mysql41: 9306 production: <<: *common As you see, it uses direct ip to reference the container. It works on my machine, but may break elsewhere, which ruins the whole reason to use docker. So I want to reference container by its hostname, like it is already done in *database.yml*: common: &common adapter: mysql2 encoding: utf8 database: sociaball username: <%= ENV['MYSQL_USER'] %> password: <%= ENV['MYSQL_PASSWORD'] %> host: db # Here I tried using *sql_host* and *host* directives. Also, I tried putting 'db' into clauses and using container name (sociaball_db_1). So, is it possible to point to database server by hostname in *thinking_sphinx.yml*? Is it even thinking sphinx issue? -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
