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

After docker-compose up unable to curl from outside the container. #9

Open
V-R-S opened this issue Jul 17, 2024 · 1 comment
Open

Comments

@V-R-S
Copy link

V-R-S commented Jul 17, 2024

No description provided.

@V-R-S
Copy link
Author

V-R-S commented Jul 17, 2024

[vagrant@archlinux microservice-rs]$ sudo docker-compose up
[+] Running 2/0e/vagrant/microservice-rs/docker-compose.yaml: version is obsolete
✔ Container microservice-rs-server-1 Created 0.0s
✔ Container microservice-rs-db-1 Created 0.0s
Attaching to db-1, server-1
db-1 |
db-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db-1 |
db-1 | 2024-07-17 18:40:58.071 UTC [1] LOG: starting PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
db-1 | 2024-07-17 18:40:58.092 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db-1 | 2024-07-17 18:40:58.092 UTC [1] LOG: listening on IPv6 address "::", port 5432
db-1 | 2024-07-17 18:40:58.128 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db-1 | 2024-07-17 18:40:58.178 UTC [29] LOG: database system was shut down at 2024-07-17 18:39:16 UTC
db-1 | 2024-07-17 18:40:58.212 UTC [1] LOG: database system is ready to accept connections
server-1 | INFO 2024-07-17T18:40:58Z: microservice: Running microservice at 127.0.0.1:8080

[vagrant@archlinux ~]$ curl 127.0.0.1:8080
curl: (56) Recv failure: Connection reset by peer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant