title: docker-compose postgresql docker-entrypoint-initdb.sh not working
body: <p>My docker-compose.yml is</p>
  
  <pre><code>  database:
      container_name: k4fntr_database
      build: ./docker/postgres
      restart: always
      environment:
        ENV: ${APP_ENV}
        TESTING_DB: ${DB_DATABASE_TESTING}
        POSTGRES_DB: ${DB_DATABASE}
        POSTGRES_USER: ${DB_USERNAME}
        POSTGRES_PASSWORD: ${DB_PASSWORD}
      ports:
        - "15432:5432"
      networks:
        - backend-network
  </code></pre>
  
  <p>My Dockerfile is</p>
  
  <pre><code>FROM postgres:10.5-alpine
  COPY /docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d/
  </code></pre>
  
  <p>The scripts from docker-entrypoint-initdb.d folder are exists inside the container, but not running</p>
  
  <p>If i run this scripts inside the container they work fine.</p>
  
  <p>I also tried to remove the container and rebuild it again and again but it is still not working!</p>