Issue Git repo of project: https://github.com/tombusby/docker-laravel-experiments (HEAD at time of writing is 823fd22). Here is my docker-compose.yml: nginx: image: nginx:stable volumes: – ./nginx.conf:/etc/nginx/conf.d/default.conf:ro volumes_from: – php links: – php:php ports: – 80:80 php: image: php:5.6-fpm volumes: – ./src:/var/www/html expose: –
Continue readingTag: docker
How to log to a file from a dockerized php app
Issue I have a php app dockerized. My issue is how to capture errors from php service into a dedicated file on the host. docker file looks is next: version: "3.9" services: web: image: nginx:latest ports: – "3000:80" volumes: –
Continue readingApache / PHP error_log location in Docker
Issue My PHP script has an error. For example, this shows this on the screen: Warning: require(/var/www/foo.php): failed to open stream: Where can I find this in the logs? I tried docker logs containerName, but it only shows access logs.
Continue readingUnable to create merged directory when executing test in chrome
Issue I have started to receive “Unable to create merged directory” error during executing tests in docker container. Command to execute test: pub run build_runner test –fail-on-severe –delete-conflicting-outputs — -p chrome Output: [SEVERE] Unable to create merged directory for /tmp/build_runner_testFCULZJ/.
Continue readingOdoo Bus.bus unavailable
Issue I get regularly following error message while running odoo v14 locally in docker: odoo-14.0-stage | 2021-04-26 10:51:00,476 10 ERROR update odoo.http: Exception during JSON request handling. odoo-14.0-stage | Traceback (most recent call last): odoo-14.0-stage | File "/home/odoo/addons/odoo/odoo/addons/base/models/ir_http.py", line 237,
Continue readingMany different hosts in Ingress configuration file
Issue I am trying to automate the hosts in Ingress Controller and I’m facing the problem of generating many hosts into one file. What I mean is, I have this ingress.yaml: — apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-host namespace:
Continue readingHow to import an external file on k8 Manifest
Issue I have a docker-compose.yml file that has my configuration on importing an external file that installs a postgis configuration when creating a docker image for Postgres, This is the docker file services: postgres: container_name: postgres_db build: context: . dockerfile:
Continue readingError Multipath Kubernetes Ingress, Cannot GET /
Issue I’m trying to learn about multipath in Kubernetes Ingress. First of all, I’m using minikube for this tutorial, I created a simple Web API using node js. NodeJS Code In this nodeJS, I created a simple Web API, with
Continue readingKubenetes: Is it possible to hit multiple pods with a single request in Kubernetes cluster
Issue I want to clear cache in all the pods in my Kubernetes namespace. I want to send one request to the end-point which will then send a HTTP call to all the pods in the namespace to clear cache.
Continue readingDocker: Unable to clone a github private rebo inside at run time
Issue I created a container with a .sh script as entry file. Also, the dockerfile create a new user, with its home as working dir. The .sh script itself is in the working dir of the new user. At run
Continue readingEnv variable invalid interpolation format for "required variable is missing a value"
Issue I have this docker-compose.yaml version: "3.7" services: busybox: image: busybox:latest entrypoint: ” environment: – bar=${foo:-baz} command: – "/bin/sh" – "-c" – "echo $$bar" that I’m running this way: docker-compose up && docker-compose down output: [+] Running 2/2 ⠿ Network
Continue readingUltraedit docker syntax hightlighting file
Issue At http://www.ultraedit.com/downloads/extras/wordfiles.html I did not find a wordfile for Docker. http://www.ultraedit.com/support/tutorials_power_tips/ultraedit_linux/add_a_wordfile.html explains how you can role your own. Inspired by https://github.com/docker/docker/blob/master/contrib/syntax/vim/syntax/dockerfile.vim I tried: /L20″Docker” Line Comment = # Escape Char = \ String Chars = “‘ File Extensions =
Continue readingSyntax highlighting for Dockerfile in Sublime Text?
Issue Is it possible to get syntax highlighting for a Dockerfile in Sublime Text? Solution Of course you can, by installing this package from Package Control: Dockerfile Syntax Highlighting, https://packagecontrol.io/packages/Dockerfile%20Syntax%20Highlighting Answered By – alebianco Answer Checked By – Mary Flores
Continue readingDockerizing flask-sockerio app with nginx + gunicorn + postgres "Application object must be callable."
Issue I have a flask application that I want to host on my VPS. I already have a domain name that is pointed to the VPS’s IP. My project structure is like this: +-nginx | \nginx.conf +-main.py +-models.py +-wsgi.py +-requirements.txt
Continue readingHow to run nginx load balancer with upstream random directive in docker
Issue This is my docker-compose.yml: version: ‘3’ services: nginx: image: nginx:alpine restart: always hostname: nginx container_name: nginx ports: – 8088:80 volumes: – ./default.conf:/etc/nginx/conf.d/default.conf – ./index.php:/usr/share/nginx/html/index.php php7: hostname: php7 container_name: php7 image: php:7.4-fpm-alpine volumes: – ./index.php:/usr/share/nginx/html/index.php php8: image: php:8.1-fpm-alpine hostname: php8
Continue readingHow to get rid of "The Angular CLI requires a minimum Node.js" error during the creation of a docker image
Issue Whenever I run the following command to create a Docker image, docker build -t ehi-member-portal:v1.0.0 -f ./Dockerfile . I get the following results I’m not sure why it is complaining about Node version because I am currently running And
Continue readingMaven WebClient dependency errors (in Docker container)
Issue I’m getting an error when I try to connect to a REST service using WebClient in Java Spring inside a Docker container. I was wondering if anyone can tell me what the problem is? Runtime Error: java.lang.NoClassDefFoundError: org/springframework/http/client/reactive/ClientHttpConnector Dependencies:
Continue readingNext.js getServerSideProps is not working using docker
Issue Currently, I am trying to fetch data after communicating with the backend server through SSR through Next.js and sprinkle it on the page. However, one problem is that when I run npm run dev locally, getServerSideProps runs well, but
Continue readingHow do i launch my jenkins-cli through docker?
Issue i have created the docker image that installs java,jenkins,jenkins-cli. now i need to pass some argument through jenkins-cli, so i need to launch jenkins-cli. How do i do it? i have no idea how it launches. Here is my
Continue readingHow to block port server from http request
Issue I have Nginx has a reversed proxy to connect client request to docker running container. The problem is you can access container by typing serverhost.fr:port_number. I want the client to only access the running container by a specific hostname.
Continue readingHow to serve compile assets with rails and nginx on docker?
Issue I’ve been preparing for production with my rails application and I’m having a lot of trouble with nginx. Compared to development where the assets weren’t precompiled, nothing works now. I use sprockets to handle the css, images and fonts
Continue readingElasticBeanstalk nginx returning 400 Bad Request when Context-Length header is sent
Issue We are trying our first .Net Core 3.0 web app in a Docker container. We are deploying through AWS ElasticBeanstalk to an Amazon Linux 2 AMI. We are able to do any GET requests of the server without an
Continue readingIs it possible to share ports between NGINX and Docker Container?
Issue I have Ubuntu 18:04/NGINX VPS where I have a bunch of Laravel project blocks, all use ssl (certbot). I wanted to deploy Nextcloud via Docker Compose on the same VPS: version: "3" services: proxy: image: jwilder/nginx-proxy:alpine labels: # labels
Continue readingNginx Proxy Manager: Connection refused when forwarding to Docker container of same Docker network
Issue Connections over my reverse proxy manager (Nginx Proxy Manager) to a docker container of the same docker network are refused. I just can’t figure out why the connections are refused. I feel like the fix is simple. I hope
Continue readingNginx reverse-proxy route returns its index.html for static asset requests (ex. .css files)
Issue I have a docker-compose/ Nginx setup that returns the built (via Webpack) React.js project (dashboard container) on the /dashboard route. Returning the index.html file works. Somehow all my static asset requests (ex. /dashboard/main.css) also return the /dashboard index.html file.
Continue readingWhy do we must use nginx with gunicorn for flask deployment inside container
Issue I’ve been using nginx as reverse proxy to gunicorn; that runs the flask server in production env inside docker container. My question is why do we use nginx inside the container as gunicorn is http server itself. I’m deploying
Continue readingrequests are not sent to ngnix reverse proxy in docker compose
Issue I am new to docker / dev ops world. So please excuse me. I have a docker compose file and ngnix config as shown below version: ‘3.2’ services: risk-analysis-XXXX1: image: c360saascr.azurecr.io/risk-analysis-XXXX1:1118_ra_in_java ports: – "8080:8080" – "9010:9010" links: – ngnix-server
Continue readingSend mail from docker container, host with NGINX and reverse proxy
Issue I’ve configured NGINX in a cloud instance with reverse proxy to a docker container. The app sends emails using nodemailer – Gmail SMTP but isn’t working inside a docker container. My guess: Missing ports configurations A mail proxy or
Continue readingNGINX Reverse Proxy Configuration Structure
Issue Is there a "proper" structure for the directives of an NGINX Reverse Proxy? I have seen 2 main differences when looking for examples of an NGINX reverse proxy. http directive is used to house all server directives. Servers with
Continue readingNifi on docker behind nginx processor configure not opening
Issue Followed guide ( https://michalklempa.com/2019/04/nifi-registry-nginx-proxy-tls-basic-auth/ ) to set up nginx basic auth, however instead of proxy for nifi-registry I set it up for nifi. Auth is working and page is accessible but somehow processor configure window not opening. The issue
Continue readingDocker Flask app behind nginx reverse-proxy sending 404
Issue Tl;DR: I have a running Flask application in a docker container. When I set up a nginx reverse proxy on the host machine in order to avoid having to enter the port number in the URL, the app send
Continue readingDocker with NGINX Reverse Proxy for a Flask app
Issue I’m currently learning how to host websites and manage servers and especially how to host multisites inside a VPS. So I’m trying to set up a reverse proxy with jwilde/nginx-proxy. But what I’m trying to understand is : Do
Continue readingNginx reverse proxy subdirectory vai proxy_pass for Bookstack
Issue I’m running Bookstack docker container from https://github.com/linuxserver/docker-bookstack The container is running on a Ubuntu host which I’m able to use perfectly when I access it directly through its http://: I have an nginx server running on a Windows host
Continue readingNginx reverse proxy for Angular apps
Issue I have created a reverse proxy using Nginx which redirects in various applications (ASP.NET API’s and Angular app’s). Reverse proxy nginx.conf (the most important settings): … server { listen 80; server_name localhost 127.0.0.1; location /projects/sample-app1/api { proxy_pass http://sample-app1-api:80; }
Continue readingDocker nginx reverse proxy error – 502 bad gateway – connection refused
Issue I’m having a problem with getting to work my NGINX reverse proxy on Docker. When I access: local.lab – NGINX responds with expected index.html page 127.0.0.1:2000 or 127.0.0.1:2001 or 127.0.0.1:2002 – service works and I get expected results local.lab/a1
Continue readingDocker nginx reverse proxy error – 502 bad gateway – connection refused
Issue I’m having a problem with getting to work my NGINX reverse proxy on Docker. When I access: local.lab – NGINX responds with expected index.html page 127.0.0.1:2000 or 127.0.0.1:2001 or 127.0.0.1:2002 – service works and I get expected results local.lab/a1
Continue readingDocker nginx reverse proxy error – 502 bad gateway – connection refused
Issue I’m having a problem with getting to work my NGINX reverse proxy on Docker. When I access: local.lab – NGINX responds with expected index.html page 127.0.0.1:2000 or 127.0.0.1:2001 or 127.0.0.1:2002 – service works and I get expected results local.lab/a1
Continue readingGetting a user's IP address in Laravel through Docker containers and Nginx webserver
Issue Good day, My problem is that I am ONLY getting my Docker network IP address when using Laravel’s $request->ip() or $request->getClientIp () or $request->server->get(‘REMOTE_ADDR’) or $_SERVER[‘REMOTE_ADDR’] which essentially all do the same I assume. So far the problem occurs
Continue readingNginx reverse proxy for keycloak
Issue I’ve deployed a keycloak server at localhost:7070 (in Docker container, it run on 8080), now I want to setup a reverse proxy for it. Here is my conf: server { listen 11080 ; location /auth/ { proxy_set_header Host $host;
Continue readingHosted server returning localhost/web instead
Issue I have a website host on a server in Digital Ocean that is behaving weirdly. The website is written in Flask which is deployed in Docker and using reverse proxy with a combination of Let’s Encrypt to host on
Continue readingnginx reverse load assets from foo.bar/app properly
Issue i have a webapplication running in a docker container behind nginx reverse proxy on the same container network. the nginx is set up so that foo.bar/app redirect to the container but application seems to try load resources from foo.bar/.
Continue readingAny idea how to nginx reverse proxy on host connect to container via container name?
Issue im using docker for my applications and set up a nginx reverse proxy on my host where the docker containers are running. The Docker Container were created with docker-compose. I would like to set up the upstream by container
Continue readingDockerized Nginx reverse proxy and Flask app, how to config?
Issue I’m having trouble deploying a simple Flask app behind a Nginx reverse proxy. The app is the one found at https://docs.docker.com/compose/gettingstarted/ I’m trying to make the app show up at subdomain.example.com/flask but with the current configuration it doesn’t work.
Continue readingLooking for a way to communicate between multiple containerized spring boot apps behind nginx in a docker bridge network
Issue I have several spring boot apps that all have rest APIs, and they are containerized. I am writing a docker-compose file to set up all of the containers to communicate with each other over a bridge network. In the
Continue readingHttp failure response for (unknown url) – Angular Universal on Docker
Issue I have the following setup: Four services in docker-compose.yml: my_nginx, my_client, my_api and my_db. I use my_nginx as a proxy pass to reach my_client:8000 and my_api:8001 (both are Node.js). my_client is the Angular application which has server side rendering.
Continue readingWhat is the correct process of using UFW + Nginx + Lets Encrpyt + Streamlit
Issue I’m very new to server config so please excuse me if I don’t explain something properly. My current stack is Ubuntu 18.04 with Certbot, Nginx, and a Streamlit application all in separate Docker containers. Certbot is handling Letsencrypt ssl
Continue readingdocker serve content over https without domain (only with public IP Address)
Issue I have two different servers. At Server 1 I have a domain and a IP Address and at Server 2 I have only a public IP Address. At Server 1 I am hosting a webpage and at Server 2
Continue readingHow does Nginx proxy_pass pass a route parameter
Issue I’m trying to make an api call to an internal docker container, but for every request url I have to make a proxy_pass in the Nginx config. I’ve read articles that the slashes at the end should work to
Continue readingVNC is Getting disconnected in Selenoid
Issue I am using Selenoid for automation. I am able to run the tests on Selenoid, However, when I click on the running browser sessions, I am not able to see the live execution. ie. the VNC is getting disconnected.
Continue readingNGINX pointing different docker compose containers
Issue I am new to docker and I ran into an architectural problem: I have two sets of container (CUSTOMER1, CUSTOMER2) running in my computer by the same docker-compose file which, both, contains two same applications (APP1, APP2). My question
Continue readingHow to enable a native module in nginx alpine docker image
Issue I want to use http://nginx.org/en/docs/http/ngx_http_realip_module.html which directs to enable –with-http_realip_module to use it. I am using docker to use this nginx FROM nginx:alpine COPY default.conf /etc/nginx/conf.d/default.conf Now how to enable this module in this docker? Can I pass some
Continue readingERROR: cannot start nginx as networking would not start on alpine docker image
Issue We are trying to install and run nginx on java based alpine image (anapsix/alpine-java:7_jdk) but we are facing below error when we start it rc-service nginx start /lib/rc/sh/openrc-run.sh: line 250: can’t create /sys/fs/cgroup/blkio/tasks: Read-only file system /lib/rc/sh/openrc-run.sh: line 250:
Continue readingNginx proxy manager is not being able to serve the page from another docker container
Issue I am trying for nginx proxy manager (running in a docker container) to connect to another docker container that has port 8080 open on it. When I setup the proxy to connect to 192.168.0.29:8080 the ip address of the
Continue readingHow to remove Nginx server blocks in effect
Issue I had a Nginx in a container (on a Ubuntu host) and several server blocks defined. I was tweaking them and wanted to remove them all. But stopping the container and removing the container did not help. The rules
Continue readingWhat's wrong with my nginx configuration with docker?
Issue I have a docker environment with 3 containers: frontend (angular), backend (dotnet) and nginx. I’m trying to configure nginx with a proxy_pass to direct the /api location to my API from one of the containers. This is my nginx
Continue readingNginx Reverse Proxy to Docker 502 Bad Gateway
Issue Spent all week on this one and tried every related stackoverflow post. Thanks for being here. I have an Ubuntu VM running nginx with reverse proxies pointing to various docker daemons concurrently running on different ports. All my static
Continue readingReverse proxy of multiple container
Issue I have 2 API containers (docker) running on port 10000 and 10003. I want to reverse proxy both of them so the API can be called from a single port which is port 80. I am trying to use
Continue readingnginx reversre proxy not returning the correct app endpoint
Issue I am installing a nginx reverse proxy along with a few applications (netdata, filebrowser, etc) on a docker compose file. my idea is from computers outside of my network to call an url like http://netdata.myserver.com and point to netdata.
Continue readingHow to set reverse proxy using jwilder/nginx-proxy?
Issue I’m trying to set a reverse proxy using jwilder/nginx-proxy container. I have a small Express app: var express = require("express"); var app = express(); app.get("/api", (req, res, next) => { res.json({ hello: "world" }); }); app.listen(3000, () => {
Continue readingCertbot failing acme-challenge (connection refused)
Issue I’m trying to set up a Django project with docker + nginx following the tutorial Nginx and Let’s Encrypt with Docker in Less Than 5 Minutes. The issue is when I run the script init-letsencrypt.sh I end up with
Continue reading502 Bad Gateway when using reverse proxy with Docker and Nginx
Issue I have searched StackOverflow for my problem but I always seem to be hitting the 502 Bad Gateway with my Nginx Docker configuration. I am trying to access pgadmin4 using my domain mydomain.com/pgadmin instead of mydomain.com:8060 where 8060 is
Continue readingNginx container exits with code 1 when upstream node is not available
Issue OVERVIEW Nginx runs in Docker container, also NodeJS application (worker) runs in another one, all managed by Docker Compose. Configuration has an upstream: container of worker 1 is also up and running, while node with worker 2 is not.
Continue readingNginx reverse proxy and mosquitto docker containers
Issue Is it possible to use jwilder/nginx-proxy to route mqtt messages to eclipse-mosquitto containers? So the clients can reach different brokers under different subdomains but under same port: broker1.example.com on port 1883 broker2.example.com on port 1883 Solution No As Brits
Continue readingDifferent domain with different phpmyadmin service and the "same port" problem (nginx reverse proxy, docker)
Issue I have a VPS with nginx-proxy container, and I create some wordpress website with phpmyadmin service. If I want to create another site with this definition I got "same port" problem. Ok, I can change the port to 2998
Continue readingHow to remove some part of path in nginx reverse proxy
Issue I’ve set frontend api url endpoint to something like this https://host/api/login which is host means nginx reverse proxy Inside nginx config I’ve done something like this location ~* ^/api/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://somehost/$1$is_args$args; }
Continue readingNginx Reverse proxy to Sonarqube not working. Getting 500 eror
Issue Using docker-compose file spinned up 3 docker containers i.e nginx,sonarqube & postgres docker-compose file below : version: "3.3" services: sonarqube: container_name: sonarqube_9 image: sonarqube:9-community restart: always ports: – "9000" networks: – sonarnet depends_on: – db environment: SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar SONAR_JDBC_USERNAME:
Continue readingNginx constantly redirecting
Issue I’m deploying an app first time like this, running a FE container separate from the BE. Currently, this setup just ends up redirecting endlessly. Any idea why? server nginx for that domain server { listen 80; server_name domain; return
Continue readingHow to serve phpMyAdmin to localhost/phpMyAdmin instead of localhost:8080 using nginx in docker
Issue In my project, I am using Django and nginx, but I want to manage my cloud databases through phpmyadmin. Django is working fine but I can’t do the same with phpmyadmin because it is running in apache at localhost:8080,
Continue readingDocker – Nginx proxy_pass "502 bad gateway" only with client routes?
Issue I have the following docker compose: version: ‘3.1’ services: backend: container_name: backend image: backendnode restart: always ports: – 3000:3000 frontend: container_name: frontend image: frontnginx restart: always ports: – 4200:80 apigw: image: reverseproxy restart: always ports: – 80:80 depends_on: –
Continue readingNuxt 3 can't can't make API calls to own backend
Issue Edit: As Hiran Chaudhuri mentioned this is not a Nuxt related issue. I use Nodemailer on my server to send out an email when the user fills out a contact form. However Nodemailer can’t send out the email, because
Continue readingI am building container with node. but I can't connect app in container
Issue I am building container with node. I have two type of codes. I think two codes very simple and similar. and package.json and Dockerfile is same. just different code. but I can connect app in container. but the other
Continue readingDocker + Node.js + Windows
Issue What I want: dockerize a Node.js web app (I am on Windows) Windows container docker-compose up gets me this error: Service ‘webapp’ failed to build: no matching manifest for windows/amd64 in the manifest list entries As far as I
Continue readingDocker commit image starts node repl instead of serving a website
Issue Goal is to NOT use a Dockerfile but to create a container, modify a container, then commit an image based off the container. It is for a course I am giving feedback on and I can NOT use a
Continue reading"Cannot GET /" error when running angular application on docker container
Issue I’m trying to run a Angular App on docker, but when I try to access some page, I get this error. I’ve tried to change the aot to false at angular.json, but it didn’t work. Here is my Dockerfile:
Continue readingDocker how to run node js
Issue This is my docker-compose.yml version: ‘3.9’ networks: bedrock: services: web: container_name: kawa-web image: nginx:stable-alpine volumes: – ./:/var/www/html:delegated – ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf ports: – 8080:80 depends_on: – php – mysql networks: – bedrock php: container_name: kawa-php image: nanoninja/php-fpm:8.0 volumes: – ./:/var/www/html –
Continue readingnodejs docker localhost website is not working
Issue I want to run my nodejs app with docker but it seems not to be working I have created my dockerfile built and image and created a container from the image I tried accessing it through web browser but
Continue readingDocker image is way slower on Cloud Run than running local
Issue I have a Docker image that should convert .docx files to .pdf using libreoffice-convert node package. I would like to communicate to the service using gRPC. When building and running the image locally, it takes about 5-6 seconds to
Continue readingError: Cannot find module '/app/wait-for-it.sh"'
Issue I am trying to dockerization my backend server. my stack is nodejs-nestjs with redis and postgres here is my Dockerfile FROM node:15 WORKDIR /usr/src/app COPY package*.json ./ COPY tsconfig.json ./ COPY wait-for-it.sh ./ COPY . . RUN npm install
Continue readingCan you bind the default network interface of the host into the container to read network stats?
Issue I have a project where I read system information from the host inside a container. Right now I got CPU, RAM and Storage to work, but Network turns out to be a little harder. I am using the Node.js
Continue readingConnection Refused: cannot access RabbitMQ Docker container from NodeJS Docker container
Issue I am having trouble connecting a Docker container running NodeJS to another docker container running RabbitMQ. I googled and looked around but did not see anything specifically for issue I am running into. I am not sure if this
Continue readingHow to generate a package.json file on local machine in current directory, using single line "docker run" command from node image
Issue I’m trying to run the npm init command to spit out a package.json file on my local machines current working directory, by running a Node image on docker. I have attempted to do it like so but haven’t had
Continue readingHTTPS communication between Springboot and angular container using https with nginx
Issue I have two Docker containers, spring boot and Angular. Also, I have Nginx installed in Ubuntu. I have this conf file Nginx to redirect the Angular application with HTTPS server { root /var/www/html; server_name dev.xxxxx.io www.dev.xxxxx.io; location / {
Continue readingJenkins: "sh npm i …" not working in docker agent
Issue Intention I am trying to build a very simple declarative Jenkinsfile that is based on the latest node docker image. I want to install the dependencies for the Node.js app by calling sh ‘npm install …’ in the Jenkinsfile.
Continue readingDocker: Not able to connect to Redis when using docker run instead of docker-compose up
Issue I’m using docker tool belt on windows home edition. I’m trying to use Node with Redis using docker-compose, it is working well when I’m running the image using docker-compose up (in the same source directory), but when I try
Continue readingHow to deploy Tableau Dashboard Extensions (web app) locally with Docker
Issue Tableau dashboards extensions (https://www.tableau.com/developer/extensions) are essentially html/css/js web apps that are used for within Tableau. I have created one, and now I have been asked to "dockerize" the app locally, so that it can then be run on either
Continue readingApi Gateway not see other services in docker container
Issue I have a problem with containerization of my small microservice project with using docker-compose. After build and up belowed compose I see that everythin is working and all services is running, but right now I have a one issue.
Continue readingJenkins. Invalid agent type "docker" specified. Must be one of [any, label, none]
Issue My JenkinsFile looks like: pipeline { agent { docker { image ‘node:12.16.2’ args ‘-p 3000:3000’ } } stages { stage(‘Build’) { steps { sh ‘node –version’ sh ‘npm install’ sh ‘npm run build’ } } stage (‘Deliver’) { steps
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingDocker hangs while building react app while checking on core-js dependency
Issue Here is where the build stops. This is on an M1 Mac Mini but have tried to build in both arm64 and x86_64 terminals, result is the same. npm info lifecycle @babel/plugin-transform-sticky-regex@7.14.5~postinstall: @babel/plugin-transform-sticky-regex@7.14.5 npm info lifecycle @babel/plugin-transform-template-literals@7.14.5~postinstall: @babel/plugin-transform-template-literals@7.14.5 npm
Continue readingHow do I both expose the port on a container to the local host AND bind persistent data to the container?
Issue I am using dockerode to create a new PostgreSQL docker container. I want to be able to: Expose port 5432 on the local host Have the container use a directory on the local host as the persistent data store
Continue readingDocker – How to see the logs of running application inside Docker container?
Issue I have a Node.js application running inside Docker container in /usr/src/app. I want to run this application using nohup (nohup node index.js &). What is the best way to see the output appended to nohup.out for general/debugging purposes? Do
Continue readingDocker container is using my host DNS instead of the docker internal DNS
Issue I have a docker-compose file that builds two basic application. A front-end with angular and a backend with adonis. version: "3.9" services: backend_login: build: context: ./apis/apis/login_api ports: – "3333:3333" sendit_frontend: build: context: ./frontend/frontend/external ports: – "4500:4200" depends_on: – api_backend_login
Continue readingCreate Docker container with both Java and Node.js
Issue I am not sure why I expected this to work: # Dockerfile FROM node:6 FROM java:8 but it doesn’t really work – looks like the first command is ignored, and second command works. Is there a straightforward way to
Continue readingHow to create docker image with nodejs 12, java, gcc, g++,python3, monocs
Issue I am trying to dockerize my NodeJs & Express API . In my API iam using https://www.npmjs.com/package/compile-run package to compile and run C, Cpp,Java,JavaScript(Node.js env), Python languages. This package requires all 5 compilers(gcc,g++,nodejs,python3,javac) installed on the server. If any
Continue readingError with docker and react, digital envelope routines::unsupported
Issue I have enrolled in a docker course and the instructor has provided a starter project with some rather old react code. I dockerized the react project, here’s the simple Dockerfile: FROM node WORKDIR /app COPY package.json . RUN npm
Continue readingReact/Next.js docker build failing when trying to reach out to local API endpoint
Issue I cannot seem to get my node:alpine Docker image for a react/next.js to build. I can get it to build fine locally, but I never see the traffic in my API logs when the Docker build reaches out to
Continue readingDocker Hostnames not resolving in next.js prod but working in dev mode (Error: getaddrinfo ENOTFOUND)
Issue I’m running a next.js react app in a docker container. It’s being composed with several other contains: one running Ghost (I’m using the API), one running mysql, and one running NGINX. I’ve got everything running in development mode. It
Continue readingAdding fonts to Puppeteer PDF renderer
Issue Background I am using Puppeteer in an express application that is running in a Docker image. It is necessary for us to run in Docker because of needed dependencies that Debian needs which we do not have access to
Continue readingdocker-compose create volume of my app folder and run node command in it
Issue Docker beginner here. I am trying to set up docker for local development. My ultimate goal is to be able to use "vite" to do hot module reloading development server. Here’s what I am trying: #docker-compose.yml version: ‘3.8’ services:
Continue reading