Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom memcached service name #196

Open
CS-Tao opened this issue Jan 30, 2020 · 1 comment
Open

Custom memcached service name #196

CS-Tao opened this issue Jan 30, 2020 · 1 comment
Labels

Comments

@CS-Tao
Copy link

CS-Tao commented Jan 30, 2020

The same issue is #169. But I don't think the solution #169 (comment) is reasonable.

Custom memcached service name by environment :

version: '2.0'
services:
  seafile-db:
    image: mariadb:10.1
  ...

  seafile-memcached:
    image: memcached:1.5.6
  ...

  seafile:
    image: seafileltd/seafileenvi-mc:latest
    environment:
      - DB_HOST=seafile-db
      - MEM_HOST=seafile-memcached
  ...
@svengreb
Copy link

I've posted a workaround in #86 (comment) . It makes use of a Docker network alias which allows to use a custom service name for the memcached container, but ensures the hardcoded memcached host name must not be changed within the source code itself.
Note that this is just a workaround and that a configuration or environment variable is still the more correct way to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants