skip to Main Content

Fail to interpolate the environment variable to ports declaration in "docker-compose.yaml"

docker-compose.yaml version: "3" services: Database: image: postgres container_name: Database restart: always ports: - "${DATA_BASE_PORT}:${DATA_BASE_PORT}" env_file: - 01-Source/Infrastructure/Interactions/ClientAndFrontServer/.env.dataBase.local.public - 01-Source/Infrastructure/Interactions/ClientAndFrontServer/.env.dataBase.local.private // ... I made sure that paths to files are correct. If to make mistake in these path, the error like…

VIEW QUESTION

I am trying to keep a container running using a docker compose file. I added tty: true and std_in: true but it still exits with code 0

Here is my docker compose file. version: '3' services: web: image: emarcs/nginx-git ports: - 8081:80 container_name: Avida working_dir: /usr/share/nginx/html command: bash -c "git clone https://github.com/raju/temp.git && echo "cloned successfully" && mv Avida-ED-Eco /usr/share/nginx/html && echo "Successfully moved the file"" volumes:…

VIEW QUESTION
Back To Top
Search