DEV Community

Discussion on: Multiple Postgres databases in a single Docker container

Collapse
 
resulyrt93 profile image
Resul Yurttakalan

I figure out this problem with change volume config. Don't attach whole /docker-entrypoint-initdb.d directory as volume. Then not permitted a directory copied to container. Solution was add all files one by one. like below;

volumes:
      - ./db_init/db_init.sh:/docker-entrypoint-initdb.d/db_init.sh 
Enter fullscreen mode Exit fullscreen mode