Hello @cytopia
I want to configure my docker stack to use memcached as a cluster with at least two nodes (servers).
I don’t know how to configure it correctly. My issue occured at the bind step.
i’ve added in my docker-compose.overwrite.yml the following code
memcd2:
image: memcached:${MEMCD_SERVER}
hostname: memcd2
ports:
# [local-machine:]local-port:docker-port
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_MEMCD}:11211"
networks:
app_net:
ipv4_address: 172.16.238.25
volumes:
# ---- Format: ----
# HOST-DIRECTORY : DOCKER-DIRECTORY
# Mount logs
- ${DEVILBOX_PATH}/log/memcd-${MEMCD_SERVER}:/var/log/memcd:rw${MOUNT_OPTIONS}
depends_on:
- bind
- php
- httpd
I’ve only change the ipv4 address of the second node (default is 172.16.238.15)
Thanks in advance
Laurent