Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL inaccessible from Laradock workspace #2658

Closed
ghost opened this issue Jul 18, 2020 · 2 comments
Closed

PostgreSQL inaccessible from Laradock workspace #2658

ghost opened this issue Jul 18, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 18, 2020

Description:

With PostgreSQL running, I attempted $ php artisan migrate from Laradock workspace, but got this from Artisan:

Illuminate\Database\QueryException
SQLSTATE[08006] [7] could not connect to server: Connection refused

  • Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = 'BASE TABLE')

Expected Behavior:

Expect $ php artisan migrate to work.

Context information:

Output of git rev-parse HEAD

2974354898fee45fa51e7fb5100e01769a0dbb3c

Output of docker version

Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:23:10 2020
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose version

docker-compose version 1.25.5, build 8a1c60f6
docker-py version: 4.1.0
CPython version: 3.7.4
OpenSSL version: OpenSSL 1.1.1c  28 May 2019

System info: Mac, Windows or Linux. Include which disto/version

Windows 10 Home Single Language

Steps to reproduce the issue:

  1. docker-compose up -d postgres
  2. docker-compose exec --user=laradock workspace bash
  3. cd laravelSite
  4. php artisan migrate

Stacktrace & Additional info:

Output of docker-compose ps:

laradock_docker-in-docker_1   dockerd-entrypoint.sh            Exit 255   2375/tcp, 2376/tcp                                                                                                    
laradock_nginx_1              /docker-entrypoint.sh /bin ...   Exit 255   0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:81->81/tcp                                                          
laradock_php-fpm_1            docker-php-entrypoint php-fpm    Exit 255   9000/tcp                                                                                                              
laradock_postgres_1           docker-entrypoint.sh postgres    Up         0.0.0.0:5432->5432/tcp                                                                                                
laradock_workspace_1          /sbin/my_init                    Exit 255   0.0.0.0:2222->22/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:3001->3001/tcp, 0.0.0.0:4200->4200/tcp, 0.0.0.0:8001->8000/tcp, 0.0.0.0:8080->8080/tcp
@ghost ghost added the Type: Bug label Jul 18, 2020
@stale
Copy link

stale bot commented Oct 16, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Oct 16, 2020
@stale
Copy link

stale bot commented Nov 6, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants