Jump to content

HenroRitchie

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by HenroRitchie

  1. Hi Thank you for the reply and the information. Apologies for only replying now. As both PW and the database are running in separate containers I struggled to link the two together. On IRC I discussed the issue with user buovjaga (which might be your IRC username?). During that discussion, the user posted two links and this link - https://github.com/davidk132/processwire-docker-compose provided the answer. The method with which you link the database container to the PW container from the PW setup is the important part. The database ip/url should be the name of the database container service. Other than that I struggled with a faulty docker container and MySQL. Eventually the I used the following which works: PW docker - suzel/docker-processwire Database - Official MariaDB localhost should be replaced with the MariaDB docker container service ID - in my case mdb1 Below the docker-compose file: version: '2' services: mdb1: image: mariadb:latest volumes: - /path/to/local/directory/mysql_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: *** MYSQL_DATABASE: *** MYSQL_USER: *** MYSQL_PASSWORD: *** pw1: depends_on: - mdb1 image: suzel/docker-processwire restart: always volumes: - volume:/var/www/html #- ./config:/usr/local/etc/php ports: - "80:80" volumes: procw1_data:
  2. Hi I have attempted to install Processwire inside a Docker container. This works well, however, during the setup Processwire needs to connect to the MySQL database. This is on the same server but in another docker instance. At the moment the error I am receiving is: SQLSTATE[HY000] [2002] No such file or directory. How do I solve this error?
×
×
  • Create New...