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.
Remember:
Sooo ... I input the required parameter JOOMLA_DB_HOST to env and started again. Next error.
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
Next dialog surprise ...
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
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 -dI asked logs and got some surprising errors.Remember:
Sooo ... I input the required parameter
JOOMLA_DB_HOSTto env and started again. Next error.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
Next dialog surprise ...
Why? Whats the advantage of using parameters then?
My docker-compose.yml looks like following:
What do I miss?
Thanks