docker-compose

How do I run a webpack build from a docker container?

情到浓时终转凉″ 提交于 2021-01-20 23:49:24
问题 The app I'm making is written in ES6 and other goodies is transpiled by webpack inside a Docker container. At the moment everything works from creating the inner directory, installing dependencies, and creating the compiled bundle file. When running the container instead, it says that dist/bundle.js does not exist. Except if I create the bundle file in the host directory, it will work. I've tried creating a volume for the dist directory at it works the first time, but after making changes and

How do I run a webpack build from a docker container?

帅比萌擦擦* 提交于 2021-01-20 23:48:48
问题 The app I'm making is written in ES6 and other goodies is transpiled by webpack inside a Docker container. At the moment everything works from creating the inner directory, installing dependencies, and creating the compiled bundle file. When running the container instead, it says that dist/bundle.js does not exist. Except if I create the bundle file in the host directory, it will work. I've tried creating a volume for the dist directory at it works the first time, but after making changes and

Terminate docker compose when test container finishes

余生长醉 提交于 2021-01-20 14:27:41
问题 I am currently running a docker-compose stack for basic integration tests with a protractor test runner, a nodejs server serving a web page and a wildfly server serving a java backend. The stack is run from a dind(docker in docker) container in my build server(concourse ci). But it appears that the containers does not terminate on finishing the protractor tests. So since the containers for wildfly, and nodejs are still running the build task never finishes... How can I make the compose end in

Flask and React Docker containers not communicating via Docker-Compose

时间秒杀一切 提交于 2021-01-19 09:12:15
问题 I have two containers - one containing a react app, another a flask app. I can build both using the below docker-compose file and their respective Dockerfiles, and am able to access each via the browser on the ports specified. However, my React app's API calls to Flask are not being retrieved (they work without Docker in the picture). Any suggestions are greatly appreciated! Docker-compose version: '3.7' services: middleware: build: ./middleware command: python main.py run -h 0.0.0.0 volumes:

Flask and React Docker containers not communicating via Docker-Compose

我只是一个虾纸丫 提交于 2021-01-19 09:12:00
问题 I have two containers - one containing a react app, another a flask app. I can build both using the below docker-compose file and their respective Dockerfiles, and am able to access each via the browser on the ports specified. However, my React app's API calls to Flask are not being retrieved (they work without Docker in the picture). Any suggestions are greatly appreciated! Docker-compose version: '3.7' services: middleware: build: ./middleware command: python main.py run -h 0.0.0.0 volumes:

Flask and React Docker containers not communicating via Docker-Compose

早过忘川 提交于 2021-01-19 09:11:35
问题 I have two containers - one containing a react app, another a flask app. I can build both using the below docker-compose file and their respective Dockerfiles, and am able to access each via the browser on the ports specified. However, my React app's API calls to Flask are not being retrieved (they work without Docker in the picture). Any suggestions are greatly appreciated! Docker-compose version: '3.7' services: middleware: build: ./middleware command: python main.py run -h 0.0.0.0 volumes:

Containers not restarted after update with restart always in docker-compose.yml

自作多情 提交于 2021-01-19 06:36:48
问题 I have some containers which all of them have the always restart value in the docker-compose file like this: version: "3.7" services: container: image: ghost:latest container_name: some_container restart: always depends_on: - ... ports: - ... ... As soon as the OS (Flatcar Linux / CoreOS) has updated itself none of the containers restart. But if I just do $ sudo docker ps all of the containers starts at once. Whats up with that and how do I fix it so my containers automatically restarts after

Containers not restarted after update with restart always in docker-compose.yml

做~自己de王妃 提交于 2021-01-19 06:36:11
问题 I have some containers which all of them have the always restart value in the docker-compose file like this: version: "3.7" services: container: image: ghost:latest container_name: some_container restart: always depends_on: - ... ports: - ... ... As soon as the OS (Flatcar Linux / CoreOS) has updated itself none of the containers restart. But if I just do $ sudo docker ps all of the containers starts at once. Whats up with that and how do I fix it so my containers automatically restarts after

View logs for all docker containers simultaneously

折月煮酒 提交于 2021-01-16 05:23:18
问题 I currently use docker for my backend, and when I first start them up with docker-compose up I get log outputs of all 4 dockers at once, so I can see how they are interacting with each other when a request comes in. Looking like this, one request going from nginx to couchdb The issue is now that I am running on GCE with load balancing, when a new VM spins up, it auto starts the dockers and runs normally, I would like to be able to access a load balanced VM and view the live logs, but I can

View logs for all docker containers simultaneously

会有一股神秘感。 提交于 2021-01-16 05:17:36
问题 I currently use docker for my backend, and when I first start them up with docker-compose up I get log outputs of all 4 dockers at once, so I can see how they are interacting with each other when a request comes in. Looking like this, one request going from nginx to couchdb The issue is now that I am running on GCE with load balancing, when a new VM spins up, it auto starts the dockers and runs normally, I would like to be able to access a load balanced VM and view the live logs, but I can