docker-compose

docker-compose , PermissionError: [Errno 13] Permission denied: '/manage.py'

自闭症网瘾萝莉.ら 提交于 2020-07-20 11:11:35
问题 After doing many research I didn't found any solution worked for me. I am trying to run command in docker-composer to start project with django-admin docker-compose run app sh -c "django-admin startproject app ." Every time I am getting the error: Traceback (most recent call last): File "/usr/local/bin/django-admin", line 10, in <module> sys.exit(execute_from_command_line()) File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command

Traefik v2: 404 while routing HTTP traffic globally to HTTPS

自古美人都是妖i 提交于 2020-07-20 10:34:28
问题 I have the problem that I can route HTTPS traffic but I can not globally redirect the HTTP traffic to HTTPS. In my case I only want HTTPS traffic, so that I want to redirect all the incoming traffic. Currently I get an 404 error while I try to serve my URLs over HTTP. I already enabled DEBUG logs in Treafik, but I can not see any problems or unnormal stuff in the logs. Additionally I saw a pretty similar topic here on Stackoverflow, but we found out, that his error was not the same to mine:

Traefik v2: 404 while routing HTTP traffic globally to HTTPS

荒凉一梦 提交于 2020-07-20 10:34:00
问题 I have the problem that I can route HTTPS traffic but I can not globally redirect the HTTP traffic to HTTPS. In my case I only want HTTPS traffic, so that I want to redirect all the incoming traffic. Currently I get an 404 error while I try to serve my URLs over HTTP. I already enabled DEBUG logs in Treafik, but I can not see any problems or unnormal stuff in the logs. Additionally I saw a pretty similar topic here on Stackoverflow, but we found out, that his error was not the same to mine:

Jenkins Docker Container can't access docker.sock

偶尔善良 提交于 2020-07-20 09:10:49
问题 I deployed the standard Jenkins Docker image with docker-compose and this configuration: deployer: image: jenkins volumes: - "/mnt/jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" ports: - "2375:2375" - "8080:8080" - "50000:50000" After reading numerous SO questions I tested added Root to the docker user group with gpasswd -a ${USER} docker and verified that the user inside the Container is Root with docker exec jenkins_deployer echo ${USER} . When I try to add Docker

Jenkins Docker Container can't access docker.sock

大城市里の小女人 提交于 2020-07-20 09:09:10
问题 I deployed the standard Jenkins Docker image with docker-compose and this configuration: deployer: image: jenkins volumes: - "/mnt/jenkins:/var/jenkins_home" - "/var/run/docker.sock:/var/run/docker.sock" ports: - "2375:2375" - "8080:8080" - "50000:50000" After reading numerous SO questions I tested added Root to the docker user group with gpasswd -a ${USER} docker and verified that the user inside the Container is Root with docker exec jenkins_deployer echo ${USER} . When I try to add Docker

NGINX and Docker-Compose: host not found in upstream

感情迁移 提交于 2020-07-19 06:59:19
问题 I'm trying to get docker-compose to run an NGINX reverse-proxy and I'm running into an issue. I know that what I am attempting appears possible as it is outlined here: https://dev.to/domysee/setting-up-a-reverse-proxy-with-nginx-and-docker-compose-29jg and here: https://www.digitalocean.com/community/tutorials/how-to-secure-a-containerized-node-js-application-with-nginx-let-s-encrypt-and-docker-compose#step-2-%E2%80%94-defining-the-web-server-configuration My application is very simple - it

docker-compose secrets without swarm

十年热恋 提交于 2020-07-18 03:50:24
问题 I don't want to use docker secrets with swarm and I discovered that it's possible to do that. Basically docker just mounts /run/secrets inside docker container, but when I enter the newly built docker container and do echo $POSTGRES_PASSWORD_FILE I get the path to my secret file. root@94a0f092eeb1:/# echo $POSTGRES_PASSWORD_FILE /run/secrets/db_password Here is my docker-compose.yml file version: '3.1' services: postgres: image: postgres:9.4 container_name: postgres environment: POSTGRES_USER

docker-compose secrets without swarm

て烟熏妆下的殇ゞ 提交于 2020-07-18 03:50:09
问题 I don't want to use docker secrets with swarm and I discovered that it's possible to do that. Basically docker just mounts /run/secrets inside docker container, but when I enter the newly built docker container and do echo $POSTGRES_PASSWORD_FILE I get the path to my secret file. root@94a0f092eeb1:/# echo $POSTGRES_PASSWORD_FILE /run/secrets/db_password Here is my docker-compose.yml file version: '3.1' services: postgres: image: postgres:9.4 container_name: postgres environment: POSTGRES_USER

Docker COPY from ubuntu absolute path

给你一囗甜甜゛ 提交于 2020-07-16 16:43:27
问题 I have following line in my dockerfile COPY /root/url.net/volumes/persistent/url/root /usr/share/nginx/html When I try to build the image with docker-compose I get Service 'frontend' failed to build: lstat /root/url.net/volumes/persistent/url/root: no such file or directory I can cd from anywhere to /root/url.net/volumes/persistent/url/root with no problem on my machine. How can I specify the absolute path of the folder in the dockerfile? 回答1: The absolute path of your resources refers to an

I want to run a docker-compose.yml on a remote docker daemon, what about volumes?

瘦欲@ 提交于 2020-07-16 03:37:26
问题 I want to run docker-compose up on a remote docker daemon: DOCKER_HOST=tcp://...:2375 docker-compose up In docker-compose.yml , I have a volume binding to a local file: version: "3" services: nginx: image: nginx:latest ports: - 80:80 volumes: - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro This won't work, as the remote docker daemon will be unable to locate ./etc/nginx/nginx.conf . What is the best approach to handle this? 回答1: Extend the existing docker image by creating your own docker