docker-compose

React app (in a docker container) cannot access API (in a docker container) on AWS EC2

痞子三分冷 提交于 2020-08-05 10:10:12
问题 my question in a nutshell... Within the context of AWS EC2 hosting, what do I need to do to allow my frontend container to fetch from an endpoint on my backend container, locally? Details: I have 2 Docker containers running via docker-compose. Locally, they work fine and I am able to query the backend container (which is a node app) from my frontend container (a React app) using: http://localhost:3000/someendpoint After moving everything onto an AWC EC2 instance I am no longer able to connect

docker SHM_SIZE /dev/shm: resizing shared memory

て烟熏妆下的殇ゞ 提交于 2020-08-05 04:17:27
问题 I want to resize postgres container's shared memory from default 64M . So I add: build: context: . shm_size: '2gb' I'm using version 3.6 of the compose file, postgres service definition. version: "3.6" services: #other services go here.. postgres: restart: always image: postgres:10 hostname: postgres container_name: fiware-postgres expose: - "5432" ports: - "5432:5432" networks: - default environment: - "POSTGRES_PASSWORD=password" - "POSTGRES_USER=postgres" - "POSTGRES_DB=postgres" volumes:

How to use sqlite3 with docker compose

回眸只為那壹抹淺笑 提交于 2020-08-05 02:05:43
问题 Between the following tutorials; Dockerizing create-react-app Developing microservices - Node, react & docker I have been able to convert my nodejs app to dockerized micro-services which is up and running and connecting to services. However, my app uses Sqlite/Sequelize and this was working perfectly prior to dockerizing. With the new setup, I get error; /usr/src/app/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:31 throw new Error('Please install sqlite3 package manually');

How to use sqlite3 with docker compose

≯℡__Kan透↙ 提交于 2020-08-05 02:04:34
问题 Between the following tutorials; Dockerizing create-react-app Developing microservices - Node, react & docker I have been able to convert my nodejs app to dockerized micro-services which is up and running and connecting to services. However, my app uses Sqlite/Sequelize and this was working perfectly prior to dockerizing. With the new setup, I get error; /usr/src/app/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:31 throw new Error('Please install sqlite3 package manually');

Start a docker container based on condition

那年仲夏 提交于 2020-08-04 23:24:22
问题 Problem- I have a docker-compose.yml with 6 services. When i execute docker-compose up, all 6 containers gets started but i need 2 containers to start its work initially and rest 4 containers based on conditions. Description- 6 services in compose(2 services for all users & 4 services for 2 users):- -2 service for all users I'm mounting login required pages in first container I maintained database for login accounts in 2nd container -2 services for each users Based on the user, i redirect

Get docker-compose.yml file location from running container?

南笙酒味 提交于 2020-08-01 09:29:31
问题 I have a few running docker containers created by executing docker-compose up . Is there any way to get the exact file path of the corresponding docker-compose.yml file used to start these containers, just by inspecting the running containers? As far as I can see, docker inspect CONTAINER_NAME does not provide this information, nor does docker-compose provide a method to get compose-related information from a running container. What I'd like to do in a script: list certain running containers

EurekaServer com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server on Docker

假装没事ソ 提交于 2020-07-31 05:07:19
问题 Eureka server not working on Docker compose Here is the docker-compose for the Eureka server and config server version: '3' services: fetebird-eurekaservice: container_name: FeteBird-EurekaService build: context: ../../Eureka-Service-Registry/ dockerfile: Dockerfile image: fetebird/eurekaservice ports: - "8761:8761" networks: - spring-cloud-network volumes: - ./fetebird-eurekaservice/data:/data logging: driver: json-file fetebird-configserver: container_name: FeteBird-ConfigServer build:

Substitute environment variables in NGINX config from docker-compose

回眸只為那壹抹淺笑 提交于 2020-07-30 08:13:42
问题 I am trying to start an NGINX server within a docker container configured through docker-compose. The catch is, however, that I would like to substitute an environment variable inside of the http section, specifically within the "upstream" block. It would be awesome to have this working, because I have several other containers that are all configured through environment variables, and I have about 5 environments that need to be running at any given time. I have tried using "envsubst" (as

unable to run a mongoDb container in docker for windows using linux file system

[亡魂溺海] 提交于 2020-07-23 10:22:25
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE

unable to run a mongoDb container in docker for windows using linux file system

自古美人都是妖i 提交于 2020-07-23 10:20:19
问题 I am trying to run a mongo db container in windows with a volume mapping to a windows folder. I have followed the answer by babak in this question. The folder maps properly, but it creates lots of files named WiredTiger.wt.1 where the number at the end keeps incrementing. I get the following lines in the log: 2020-06-12T12:49:11.431+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.13233 2020-06-12T12:49:11.433+0000 E STORAGE