skip to Main Content

Cat in script in docker

I have a container with node:18-alpine3.14 as base image. I have docker-compose file with command: ["prepare_config.sh","--","npm", "run", "start-p"] in prepare config #!/bin/bash json_data=$(cat <<EOF { "url": "$URL" } EOF ) echo "$json_data"; When I try to run this code I…

VIEW QUESTION

Network Docker-Compose

I have a docker-compose with a bridge network called mdb_default, where I have a database. I want to deploy another docker-compose that connects to that network that already exists, but I don't know how to define it in the docker-compose.…

VIEW QUESTION
Back To Top
Search