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

Postgres driver not found #33

Open
slaby93 opened this issue May 31, 2024 · 2 comments
Open

Postgres driver not found #33

slaby93 opened this issue May 31, 2024 · 2 comments

Comments

@slaby93
Copy link

slaby93 commented May 31, 2024

When trying to use Postgres as a driver, I receive info that there is no pgsql as a driver
docker-compose.yml

version: '3.9'
services:
  mailcarrier:
    image: mailcarrier/mailcarrier
    restart: always
    ports:
      - '80:80'
      - '8080:8080'
      - '443:443'
    environment:
      SSL_MODE: mixed
      MAILCARRIER_AUTH_GUARD: auth:sanctum
      APP_NAME: XXXMailcarrier
      APP_ENV: local
      APP_KEY: base64:XXX
      APP_DEBUG: true
      DB_CONNECTION: pgsql
      DB_HOST: localhost
      DB_PORT: 5432
      DB_DATABASE: XXX
      DB_USERNAME: XXX
      DB_PASSWORD: XXX

Whne trying mysql it does work. But hosting separate MySQL database is too expensive for my project.

image

image

@slaby93
Copy link
Author

slaby93 commented Jun 2, 2024

Fix:
(simirlar to #32 (comment))

FROM mailcarrier/mailcarrier:latest
RUN apt update && apt install php8.2-pgsql -y
EXPOSE 80
EXPOSE 443
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 5555

@danilopolani
Copy link
Contributor

Hey!
Thank you for the issue and the solution. Probably I should add built-in the support for Postgres in the base Mailcarrier docker image

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