Ultraedit 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 reading

How 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 reading

Nginx 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 reading

Docker 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 reading

UnknownEndpoint: 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 reading

UnknownEndpoint: 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 reading

Docker 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 reading

docker ERR_NAME_NOT_RESOLVED http ajax

Issue I have 3 simple microservices (mysql, apirest, gui) that I start using docker-compose: version: ‘3.2’ services: mysql: image: mysql/mysql-server:5.6 container_name: mysql restart: always volumes: – mysql:/var/lib/mysql/data ports: – “3306:3306” networks: – mynetwork deploy: mode: replicated replicas: 1 environment: –

Continue reading