[GH-ISSUE #1541] 🐛 [Bug]Attempting to connect to database .. #679

Closed
opened 2026-02-25 21:35:39 +03:00 by kerem · 1 comment
Owner

Originally created by @ljcbaby on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1541

Originally assigned to: @Yannick243 on GitHub.

🐛 Bug

I tries to use postgres but it runs not well.

Image

Version & Environment

Rev: [2.4.0]

OS: [cypht/cypht]

Compose

services:
  cypht:
    image: cypht/cypht:2.4.0
    container_name: cypht
    restart: unless-stopped
    environment:
      - TZ=Asia/Shanghai
      - UMASK=0022
      - USER_CONFIG_TYPE=DB
      - ATTACHMENT_DIR=/var/lib/attachments
      - DEFAULT_LANGUAGE=zh-Hans
      - ALLOW_LONG_SESSION=true
      - DISABLE_IP_CHECK=true
      - DEFAULT_SETTING_TIMEZONE=Asia/Shanghai
      - DEFAULT_SETTING_LANGUAGE=zh-Hans
      - DB_CONNECTION_TYPE=host
      - DB_HOST=postgres
      - DB_PORT=5432
      - DB_NAME=cypht
      - DB_USER=cypht
      - DB_PASS=bf4610e60d38df1d956dbf567952895b
      - DB_DRIVER=pgsql
      - DEFAULT_SETTING_NO_PASSWORD_SAVE=false
      - FANCY_LOGIN=true
    networks:
      - apps
    ports:
      - 3008:80
    volumes:
      - /mnt/ssd/AppConfig/cypht:/var/lib/hm3
      - /mnt/Data/apps/cypht:/var/lib/attachments

networks:
  apps:
    external: true

x-portals:
- host: 192.168.3.4
  name: Web UI
  path: /
  port: 3008
  scheme: http
x-notes: 邮件聚合

Originally created by @ljcbaby on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1541 Originally assigned to: @Yannick243 on GitHub. <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. Use a clear and concise description of what the bug is.--> I tries to use postgres but it runs not well. ![Image](https://github.com/user-attachments/assets/922a7539-b1da-4067-9887-8922fa98c111) ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: [2.4.0] <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: [cypht/cypht] ### Compose ```docker compose services: cypht: image: cypht/cypht:2.4.0 container_name: cypht restart: unless-stopped environment: - TZ=Asia/Shanghai - UMASK=0022 - USER_CONFIG_TYPE=DB - ATTACHMENT_DIR=/var/lib/attachments - DEFAULT_LANGUAGE=zh-Hans - ALLOW_LONG_SESSION=true - DISABLE_IP_CHECK=true - DEFAULT_SETTING_TIMEZONE=Asia/Shanghai - DEFAULT_SETTING_LANGUAGE=zh-Hans - DB_CONNECTION_TYPE=host - DB_HOST=postgres - DB_PORT=5432 - DB_NAME=cypht - DB_USER=cypht - DB_PASS=bf4610e60d38df1d956dbf567952895b - DB_DRIVER=pgsql - DEFAULT_SETTING_NO_PASSWORD_SAVE=false - FANCY_LOGIN=true networks: - apps ports: - 3008:80 volumes: - /mnt/ssd/AppConfig/cypht:/var/lib/hm3 - /mnt/Data/apps/cypht:/var/lib/attachments networks: apps: external: true x-portals: - host: 192.168.3.4 name: Web UI path: / port: 3008 scheme: http x-notes: 邮件聚合 ```
kerem 2026-02-25 21:35:39 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ljcbaby commented on GitHub (Jun 11, 2025):

I add these code and switch to daily image, it runs.

    entrypoint:
      - sh
      - -c
      - |
        docker-php-ext-install pdo_pgsql pgsql
        docker/docker-entrypoint.sh
<!-- gh-comment-id:2962922512 --> @ljcbaby commented on GitHub (Jun 11, 2025): I add these code and switch to daily image, it runs. ```compose entrypoint: - sh - -c - | docker-php-ext-install pdo_pgsql pgsql docker/docker-entrypoint.sh ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#679
No description provided.