SOLVED How to correctly set user/pass in compose file?
from luthis@lemmy.nz to linux@lemmy.ml on 03 Dec 2023 19:26
https://lemmy.nz/post/4034535

cross-posted from: lemmy.nz/post/4034332

Not sure what I’m doing wrong here, I’m using this image:

hub.docker.com/r/bitnami/wordpress-nginx

I updated the compose file to have un/pw for mariadb:

  mariadb:
    image: docker.io/bitnami/mariadb:11.1
    volumes:
      - '/etc/docker/mariadb-persist:/bitnami/mariadb'
    environment:
      - ALLOW_EMPTY_PASSWORD=no
      - MARIADB_USER=admin
      - MARIADB_PASSWORD=admin
      - MARIADB_DATABASE=bitnami_wordpress

But I get this error:

2023-12-03 19:03:02 3 [Warning] Access denied for user ‘admin’@‘172.18.0.3’ (using password: NO)

using password: NO??

#linux

threaded - newest

luthis@lemmy.nz on 03 Dec 2023 19:34 collapse

Fixed it, I had to delete the images

astraeus@programming.dev on 03 Dec 2023 19:43 collapse

The instructions say ALLOW_EMPTY_PASSWORDS=yes. They also say this is meant for development purposes only, I assume they mean you should build a dockerfile for something more pressing like a prod environment.