Category : redis

I have two services. Radish and PHP. How to make php wait for the launch of redis and write about it.I tried using healthcheck-s but apparently I am not setting it up correctly. Docker-compose.yml version: ‘2’ services: php: build: context: docker/web dockerfile: Dockerfile-php-7.0 container_name: php ports: – "8280:80" links: – redis:redis redis: build: docker/cache container_name: ..

Read more

Have a single Redis instance set up via docker-compose (using my Redis Dockerfile), all working. Now I’m trying to seed the Redis instance with data after the container has started. (1) Trying to run redis-cli directly in Dockerfile (that is run by docker-compose) FROM redis:6.2.5 COPY ./redis.conf /test_dir/ COPY ./seed.txt /test_dir/ ENTRYPOINT ["redis-server", "/test_dir/redis.conf"] RUN ..

Read more

I upgraded my docker to ubuntu 20.04. Since I did this, the redis-server service does not start in my bitbucket pipeline anymore. This is all it says service redis-server start start-stop-daemon: matching on world-writable pidfile /var/run/redis/redis-server.pid is insecure Starting redis-server: failed If I run my docker locally and try to start the service, everything works ..

Read more

I’m trying to figure out how can I set redis requirepass from .env variable ${REDIS_PASSWORD}. And also because I’m using requirepass the healthcheck returns unhealthy. Is there any way I can healthcheck with requirepass? This is my:Dockerfile FROM redis:${REDIS_VERSION} AS redis COPY docker/redis/redis-healthcheck /usr/local/bin/ COPY docker/redis/base-* /usr/local/etc/redis/redis.conf CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ] # For Documentation ..

Read more

Suppose I am developing an application consisting of several docker containers: web server, PostgresSQL database, Redis cache, etc. I use docker-compose to wire all the containers by the network. Containers are running on a single host, the only port published to the host is a 8080 HTTP port from a web server: # docker-compose.yml version: ..

Read more