I have a docker-compose file with RabbitMQ, PostgresSQL and Vault to run, for this Vault container I have some configurations and a .sh file to apply these configurations, but when I run the compose file, I get an error from Vault container: " /usr/local/bin/docker-entrypoint.sh: exec: line 104: /vault/config/config.sh: not found"
I'm using Windows 10 PRO I already tried:
- Update docker (stable version)
- set COMPOSE_CONVERT_WINDOWS_PATHS on Windows env vars
- Reset docker and share drive again
- Run as Windows containers
- Basically everithing from https://github.com/docker/compose/issues/2548
And nothing seems to work...
My docker file:
version: "3"
services:
postgres:
container_name: postgres
image: postgres:9.6
ports:
- "5433:5432"
environment:
POSTGRES_USER: <my_user>
POSTGRES_PASSWORD: <my_pass>
POSTGRES_DB: <my_db>
healthcheck:
test: ["CMD-SHELL", "pg_isready -U <my_db>"]
interval: 2s
timeout: 3s
retries: 30
rabbit:
container_name: rabbit
image: rabbitmq:3-management
ports:
- "5673:5672"
- "15673:15672"
healthcheck:
test: ["CMD", "rabbitmqctl", "node_health_check"]
interval: 2s
timeout: 3s
retries: 30
vault:
container_name: vault
image: vault
ports:
- "8201:8200"
volumes:
- ./vault/:/vault/config
environment:
VAULT_ADDR: http://0.0.0.0:8200
VAULT_DEV_ROOT_TOKEN_ID: root
SKIP_SETCAP: 1
links:
- postgres
- rabbit
command: ["/vault/config/config.sh"]
healthcheck:
test: ["CMD", "vault", "status"]
interval: 2s
timeout: 3s
retries: 30
On Linux it's running ok, the problem is on Windows If anyone needs more content (files, context, code, etc) comment and I will add it.