docker-compose

how to get groups of a user in ldap

时间秒杀一切 提交于 2019-12-11 18:12:21
问题 i am using openldap with phpldapadmin, and i'm trying to check what are the groups of a certain user. this is my scheme ... this is what i tried, but it didn't work docker-compose exec openldap ldapsearch -x -H "ldap://openldap" -D "cn=admin,dc=openldap" -w admin -b "cn=root,ou=django,dc=openldap" '(&(objectClass=*)(member=cn=superuser,ou=groups,dc=openldap))' PS: i'm new to ldap, this is the image i'm using 回答1: There are tons of literature on LDAP and queries, that explain how to search for

React.js Docker - Module not found

你。 提交于 2019-12-11 18:11:54
问题 Prerequisites Linux 18.04 create-react-app 2.0 docker 19.09.0 Dockerfile # base image FROM node:9.6.1 # set working directory RUN mkdir /usr/src/app WORKDIR /usr/src/app # add `/usr/src/app/node_modules/.bin` to $PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH ADD package.json /package.json # install and cache app dependencies COPY package.json /usr/src/app/package.json RUN npm install --save --silent RUN npm install react-scripts@latest -g --silent # start app CMD ["npm", "start"] docker

Using proxy on docker-compose in server

假装没事ソ 提交于 2019-12-11 18:08:22
问题 When i run sudo docker-compose build i get Building web Step 1/8 : FROM python:3.7-alpine ERROR: Service 'web' failed to build: error parsing HTTP 403 response body: invalid character '<' looking for beginning of value: "<html><body><h1>403 Forbidden</h1>\nSince Docker is a US company, we must comply with US export control regulations. In an effort to comply with these, we now block all IP addresses that are located in Cuba, Iran, North Korea, Republic of Crimea, Sudan, and Syria. If you are

Visual Studio: How to change the docker compose command used to debug a dockerized application?

左心房为你撑大大i 提交于 2019-12-11 17:40:09
问题 Since there is no option to automaticaly remove container after run in docker-compose.yml, I am only left with the option to run the docker compose in that fashion: docker-compose rm -f . However I can't find a way to change the docker compose command used when I am debugging my .NET Core dockerized application in Visual Studio. How can I achieve that? 来源: https://stackoverflow.com/questions/56061481/visual-studio-how-to-change-the-docker-compose-command-used-to-debug-a-dockeriz

NodeJS could not connect to MYSQL latest version inside Docker Container

心不动则不痛 提交于 2019-12-11 17:33:29
问题 NodeJS cannot connect to MySQL latest version or either 8 onwards and encountered following error message: ERROR: connect ECONNREFUSED 172.21.0.2:3306 Here is my docker-compose file version: '2.1' services: db: build: ./db networks: - ppshein environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes healthcheck: test: "exit 0" node: build: ./app depends_on: db: condition: service_healthy ports: - 3000:3000 networks: - ppshein networks: ppshein: Here is db Dockerfiles FROM mysql:5 COPY init_db.sql /docker

docker running but can't access on the server

吃可爱长大的小学妹 提交于 2019-12-11 17:27:46
问题 I have stages for Jenkins jobs to test and deploy my nodejs with docker, I run docker on port 3000 but when I tried to browser my ip-server:3000 , it doesn't work and nothing my dockers are running here is my Jenkinsfile node { try { stage('Checkout') { checkout scm } stage('Environment') { sh 'git --version' echo "Branch: ${env.BRANCH_NAME}" sh 'docker -v' sh 'printenv' } stage('Build Docker test'){ sh 'docker build -t crud-test -f Dockerfile.test --no-cache .' } stage('Docker test'){ sh

How to connect to rabbitmq container from the application server container

那年仲夏 提交于 2019-12-11 17:19:20
问题 I am new to docker and I am trying to dockerize this application I have written in Golang. It is a simple web server that interacts with rabbitmq and mongodb It takes the creadentials form a toml file and loads it into a config struct before starting the application server on port 3000. These are the credentials mongo_server = "localhost" database = "collect_db" rabbitmq_server = "amqp://guest:guest@localhost:5672/" If it can't connect to these urls it fails with an error. Following is my

How to use docker-compose to restore fresh databases quickly for integration tests?

拟墨画扇 提交于 2019-12-11 17:16:22
问题 I would like to run integration and end-to-end tests with a database in a known state for each run, to make the tests independent and repeatable. An easy way of doing this is to use docker-compose to create a database container which loads the scheme and data from a dump file each time. However, this is far too slow to restore the database for every test. A better way seems to be to restore the database once in a docker container or volume, and then copy (mount?) the container/volume database

Error creating TLS config (v1.3.7)

我怕爱的太早我们不能终老 提交于 2019-12-11 17:13:53
问题 I've been fiddling with Traefik for a few hours and find it extremely interesting. However, I've ran into a problem that I can't seem to solve by myself. It's a very simple setup, just trying to test the HTTP to HTTPS redirection and my SSL certificates. I have the following docker-compose.yml version: '2' services: traefik: image: traefik:v1.3.7-alpine ports: - "80:80" - "443:443" - "8080:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock:z - /opt/dockerapp/rocketchat/traefik/traefik

Unable to have Docker containers communicate with each other

前提是你 提交于 2019-12-11 17:05:45
问题 I have two Docker containers, one running a React app (built using create-react-app) and another with a Node app API. I have a docker-compose file set up, and according to the documentation I should be able to use the names of the services to communicate between containers. However, when I try to send a request to the /login endpoint of my API from the React app I received a net::ERR_NAME_NOT_RESOLVED error. I'm using Unirest to send the request. I've done a bunch of digging around online and