Skip to content

installation: docker-compose env parameter not used, but shown for error msgs in logs #1321

@Kasperx

Description

@Kasperx

Hi

I got a joomla website on debian 11 running for some months and one day the mysql db crashed. So I'm trying to install the system again. "Can't be that difficult" :/
I used the same docker-compose-file for new env with some different passwords und started. Of course it didn't work, the parameters in environment section weren't read out and so I had to input all to website manually and accidently put some errors there. So installation didn't work.
After many trials I copied the example docker-compose content from docs to another local file and updated parameters from my system like name and pws. After docker-compose -f <file-name> up --force-recreate -d I asked logs and got some surprising errors.

Image

Remember:

Image

Sooo ... I input the required parameter JOOMLA_DB_HOST to env and started again. Next error.

Image

Seems like error in doc I guess :(

Sooo ... I input the required parameter JOOMLA_DB_PASSWORD (and ...USER and ...NAME :P) to env and started again. Working :)
So all required parameters in compose file so that I don't need to input anything manually for installation, right?
Ups

Image

Next dialog surprise ...

Image

Why? Whats the advantage of using parameters then?
My docker-compose.yml looks like following:

version: "3.4"
services:

  joomla:
    image: joomla:5.4.3
    container_name: container1
    restart: unless-stopped
    ports:
      - 12345:80
      - 23456:443
    environment:
      JOOMLA_DB_HOST: db
      JOOMLA_DB_PASSWORD: example1
      JOOMLA_DB_USER: joomla
      JOOMLA_DB_NAME: joomla_db
      JOOMLA_SITE_NAME: something
      JOOMLA_ADMIN_USER: Joomla_admin
      JOOMLA_ADMIN_USERNAME: Joomla_admin
      JOOMLA_ADMIN_PASSWORD: example2
      JOOMLA_ADMIN_EMAIL: myemail
#      MYSQL_PORT_3306_TCP:
    volumes:
      - some-nice-folder:/var/www/html
    networks:
      - network2
    links:
#      - "db:joomla_db"
#      - "db:mysql"
      - db

  db:
    image: mysql:8.4.8
    container_name: container2
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: joomla_db
      MYSQL_USER: joomla
      MYSQL_PASSWORD: example1
#      MYSQL_RANDOM_ROOT_PASSWORD: '1'
      MYSQL_ROOT_PASSWORD: example3
    volumes:
      - some-nice-folder:/var/lib/mysql
    networks:
      - network2

networks:
  network2:

What do I miss?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions