WordPress auf Synology Docker – Probleme
-
Hallo ihr Wissenden,
bin dabei meine ersten Schritte in WordPress zu wagen, gibt aber schon Probleme bei der Installation. Hier die yaml-Datei:
—————————
version: ‚3.6‘
services:
db:
image: mysql:5.7
volumes:
– /volume1/docker/wordpress/data_db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: mypassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpresswordpress: image: wordpress:latest depends_on: - db ports: - 8558:80 restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress volumes: - /volume1/docker/wordpress/plugins:/var/www/html/wp-content/plugins - /volume1/docker/wordpress/themes:/var/www/html/wp-content/themes - /volume1/docker/wordpress/uploads:/var/www/html/wp-content/uploads
volumes:
data_db:————————
Wenn ich mich dann da einlogge bekomme ich den Fehler:
———————————
Error establishing a database connection
This either means that the username and password information in your
wp-config.php
file is incorrect or that contact with the database server atdb:3306
could not be established. This could mean your host’s database server is down.- Are you sure you have the correct username and password?
- Are you sure you have typed the correct hostname?
- Are you sure the database server is running?
If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.
—————————————-
in Portainer läuft die Datenbank.
Wo ist mein Fehler in der yaml?
Gruß
Bernd
Frage: Wie funktioniert das hier mit
dem Inline Code?
- Du musst angemeldet sein, um auf dieses Thema zu antworten.