I have a docker running on a remote server using the following docker compose file: version: ‘2’ services: zookeeper: image: confluentinc/cp-zookeeper:6.1.0 hostname: zookeeper container_name: zookeeper ports: – "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 broker: image: confluentinc/cp-server:6.1.0 hostname: broker container_name: broker depends_on: – zookeeper ports: – "9092:9092" – "9101:9101" environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: ‘zookeeper:2181’ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT ..
I am trying to run an apache2 under docker (WSL2) with a self-signing certification to test SSL. The docker file script looks like this FROM php:7.1-apache RUN apt-get update && apt-get install -y zlib1g-dev COPY ./certs/* /etc/apache2/ssl/ COPY dev.conf /etc/apache2/sites-enabled/dev.conf RUN docker-php-ext-install mysqli pdo pdo_mysql zip mbstring RUN a2enmod rewrite RUN a2enmod ssl RUN service ..
The docker file below it builds just fine, but how it runs the "npm install" without installing the nodejs and npm before as a dependency? FROM node:lts-alpine # Install dependencies RUN apk add make gcc g++ python bash git curl # Install packages RUN npm install EXPOSE 5000 CMD [ "npm", "start"] In my opinion, ..
I have this folder structure folder_ext folder_docker |—> folder_int folder_1 folder_2 ……. My docker files are all included inside the folder_docker. Inside my docker-compose.yml file, I set the context like this version: ‘3’ services: nginx: container_name: my_nginx build: context: .. dockerfile: ./folder_docker/nginx/Dockerfile Inside the Dockerfile I copy some files from folder_ext COPY ./folder_ext /container_folder_ext but ..