-
Notifications
You must be signed in to change notification settings - Fork 25
Unraid Docker Compose access denied for user 'cypht'@'172.17.0.1' #1020 #33
Description
💬 Question
During the installation through Unraid compose, the log reported the following warnings:
Warning: Use of undefined constant DB - assumed 'DB' (this will throw an Error in a future version of PHP) in /tmp/cypht_setup_database.php on line 3
Warning: Use of undefined constant DB - assumed 'DB' (this will throw an Error in a future version of PHP) in /tmp/cypht_setup_database.php on line 4
Warning: Use of undefined constant file - assumed 'file' (this will throw an Error in a future version of PHP) in /tmp/cypht_setup_database.php on line 5
Warning: Use of undefined constant mysql - assumed 'mysql' (this will throw an Error in a future version of PHP) in /tmp/cypht_setup_database.php on line 6
Waiting for database connection ... (SQLSTATE[HY000] [1045] Access denied for user 'cypht'@'172.17.0.1' (using password: YES))
My configuration on Unraid compose is as follows:
version: '3'
services:
cypht:
image: sailfrog/cypht-docker:latest
container_name: cypht
network_mode: bridge
restart: always
#privileged: true
volumes:
- /mnt/user/Personal/cypht:/var/lib/hm3/users
ports:
- "8280:80"
environment:
- CYPHT_AUTH_USERNAME=admin
- CYPHT_AUTH_PASSWORD=admin_password
- CYPHT_DB_CONNECTION_TYPE=host
- CYPHT_DB_HOST=192.168.3.10
- CYPHT_DB_DRIVER=mysql
- CYPHT_DB_NAME=cypht
- CYPHT_DB_USER=cypht
- CYPHT_DB_PASS=Z
- CYPHT_SESSION_TYPE=DB
- CYPHT_DEFAULT_SETTING_TIMEZONE=Asia/Shanghai
- CYPHT_MODULE_POP3=disable
- CYPHT_MODULE_IMAP=enable
labels:
net.unraid.docker.webui: https://mail.domain.com/
net.unraid.docker.icon: https://raw.githubusercontent.com/cypht-org/cypht/6d0e50a1778cd63a77130e44f4b46bb9c2a1cb82/modules/core/assets/images/logo.svg
traefik.enable: true
traefik.http.routers.cypht.rule: Host(`mail.domain.com`)
traefik.http.services.cypht.loadbalancer.server.port: 80
networks:
default:
name: bridge
external: true