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

dev.docker-compose.yml is broken #15371

Closed
2 tasks done
StarlessNights opened this issue Aug 22, 2024 · 0 comments
Closed
2 tasks done

dev.docker-compose.yml is broken #15371

StarlessNights opened this issue Aug 22, 2024 · 0 comments

Comments

@StarlessNights
Copy link
Contributor

Debug mode

Describe the bug

Setting up dev.docker-compose.yml leads to a situation where the server cannot talk to the database. The pre-flight will tell you the following:

D'oh! Looks like we can't connect to your database. Please update your database settings in your .env file. Your database says: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name does not resolve (Connection: mysql, SQL: select 2 + 2)

Reproduction steps

$ podman-compose -f dev.docker-compose.yml up

or the same with docker-compose.

Expected behavior

It should create a working environment.

Screenshots

No response

Snipe-IT Version

7.0.10

Operating System

Arch Linux

Web Server

Apache (container)

PHP Version

8.1

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

I'll send a PR soon.

snipe added a commit that referenced this issue Aug 22, 2024
@snipe snipe closed this as completed Aug 22, 2024
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

2 participants