skip to Main Content

Does ‘docker-compose exec ‘ ignore entrypoint?

I cannot find any answer to my question and I can't make the entrypoint run when using docker compose exec. I'm using a custom entrypoint in my docker-compose.yml: version: "3.8" services: php: image: php:8-fpm entrypoint: ./docker-php-entrypoint.sh command: ["php-fpm"] The ./docker-php-entrypoint.sh…

VIEW QUESTION

How to change MongoDB pwd in Docker Compose?

I tried to change the mongodb password in docker-compose.yaml file directly by changing the - MONGO_INITDB_ROOT_PASSWORD parameter within environment in mongodb service. Here is my docker-compose.yaml file before changing the password: mongo-dev: container_name: mongo-dev image: mongo restart: unless-stopped environment: -…

VIEW QUESTION
Back To Top
Search