docker-compose

docker-compose picks the wrong ruby version

允我心安 提交于 2021-01-24 07:08:35
问题 When running docker-compose, it seems to pick the wrong ruby program. Using rbenv I have installed version 2.6.2 But there is also a version under /usr/bin that is at 2.6.3. I can't delete that version, also not as sudo. I have already uninstalled rbenv and re-installed it. The strange thing is this: MBP-Andre:biblestudy_platform andreheijstek$ which ruby /Users/andreheijstek/.rbenv/shims/ruby MBP-Andre:biblestudy_platform andreheijstek$ whereis ruby /usr/bin/ruby When I run docker-compose,

Docker - psql: django.db.utils.OperationalError: FATAL: role “admin” does not exist

不问归期 提交于 2021-01-24 05:43:13
问题 I've configured docker and postgres for my Django project. When I do python manage.py runserver 0:8000 , it gives me this error: django.db.utils.OperationalError: FATAL: role "admin" does not exist However, I've been used the same configs with my previous projects and everything seems fine in those. Here is my docker-compose.yml file version: '3' services: db: image: postgres environment: - POSTGRES_DB=myproject - POSTGRES_USER=admin - POSTGRES_PASSWORD=admin_pass container_name: myproject

Docker - psql: django.db.utils.OperationalError: FATAL: role “admin” does not exist

▼魔方 西西 提交于 2021-01-24 05:42:20
问题 I've configured docker and postgres for my Django project. When I do python manage.py runserver 0:8000 , it gives me this error: django.db.utils.OperationalError: FATAL: role "admin" does not exist However, I've been used the same configs with my previous projects and everything seems fine in those. Here is my docker-compose.yml file version: '3' services: db: image: postgres environment: - POSTGRES_DB=myproject - POSTGRES_USER=admin - POSTGRES_PASSWORD=admin_pass container_name: myproject

Bash script command to wait until docker-compose process has finished before moving on

五迷三道 提交于 2021-01-23 07:58:02
问题 We have a bash script that installs a program, which includes running a docker-compose file. One of the services, RabbitMQ, takes some time to load and I need a command to wait until it's loaded before the other services are loaded. We were using a sleep command, but our customers use different laptops, so it takes longer to load on some than others. Is there a way to just hold it until it finishes loading the service before moving on to the next without using the sleep command? I have

Bash script command to wait until docker-compose process has finished before moving on

纵饮孤独 提交于 2021-01-23 07:56:21
问题 We have a bash script that installs a program, which includes running a docker-compose file. One of the services, RabbitMQ, takes some time to load and I need a command to wait until it's loaded before the other services are loaded. We were using a sleep command, but our customers use different laptops, so it takes longer to load on some than others. Is there a way to just hold it until it finishes loading the service before moving on to the next without using the sleep command? I have

Docker volumes on Windows WSL2

*爱你&永不变心* 提交于 2021-01-21 05:06:17
问题 I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes : version: "3.7" services: node: build: . container_name: node hostname: node volumes: - ./app:/app stdin_open: true the container build and start well, I access it with docker exec nicely but the /app folder inside the container isn't bound to my laptop app folder. However the right path is actually correctly mounted on the running container : (here I do pwd on the host to if it matches perfectly

Docker volumes on Windows WSL2

爱⌒轻易说出口 提交于 2021-01-21 05:04:31
问题 I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes : version: "3.7" services: node: build: . container_name: node hostname: node volumes: - ./app:/app stdin_open: true the container build and start well, I access it with docker exec nicely but the /app folder inside the container isn't bound to my laptop app folder. However the right path is actually correctly mounted on the running container : (here I do pwd on the host to if it matches perfectly

Docker Anonymous Volumes

这一生的挚爱 提交于 2021-01-21 01:10:44
问题 I've seen Docker volume definitions in docker-compose.yml files like so: -v /path/on/host/modules:/var/www/html/modules I noticed that Drupal's official image, their docker-compose.yml file is using anonymous volumes. Notice the comments: volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes advantage of the feature in Docker that a new anonymous # volume (which is what we're creating here) will be initialized with the # existing content of the image at

Docker Anonymous Volumes

放肆的年华 提交于 2021-01-21 01:03:38
问题 I've seen Docker volume definitions in docker-compose.yml files like so: -v /path/on/host/modules:/var/www/html/modules I noticed that Drupal's official image, their docker-compose.yml file is using anonymous volumes. Notice the comments: volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes advantage of the feature in Docker that a new anonymous # volume (which is what we're creating here) will be initialized with the # existing content of the image at

Docker Anonymous Volumes

二次信任 提交于 2021-01-21 01:00:26
问题 I've seen Docker volume definitions in docker-compose.yml files like so: -v /path/on/host/modules:/var/www/html/modules I noticed that Drupal's official image, their docker-compose.yml file is using anonymous volumes. Notice the comments: volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes advantage of the feature in Docker that a new anonymous # volume (which is what we're creating here) will be initialized with the # existing content of the image at