please, when I want to run exist prestashop project (1.6.1.7) on docker, still showing me page of installation, but I have own DB. Where is a problem? Please, can you help me?
On stackoverflow I didn't found same question, which would help me.
This is my docker-compose.yml
version: "3.8"
services:
prestashop:
image: prestashop/prestashop
ports:
- 82:80
links:
- mysql:mysql
depends_on:
- mysql
volumes:
- ./../:/srv
- ./../modules:/srv/modules
- ./../themes:/srv/themes
- ./../override:/srv/override
environment:
- PS_DEV_MODE=1
- DB_SERVER=mysql
- DB_USER=root
- DB_PASSWD={PASSWORD}
- DB_NAME={DB}
- PS_INSTALL_AUTO=0
mysql:
image: mysql
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: {PASSWORD}
MYSQL_DATABASE: {DB}
MYSQL_USER: db_write
MYSQL_PASSWORD: 123
volumes:
- ./data/db/:/var/lib/mysql:delegated
adminer:
image: adminer
container_name: Adminer
restart: always
environment:
ADMINER_DEFAULT_SERVER: mysql
ports:
- 8080:8080
When I go to install my DB is removed which I don't want. I already tried to install the new database and then replace it with my database, but it didn't help.
My Answer:
'3'
services:
prestashop:
image: prestashop/prestashop:1.6
ports:
- "8080:80"
environment:
- DB_SERVER=db
- DB_NAME=prestashop
- DB_USER=root
- DB_PASSWD=root
volumes:
- ./prestashop:/var/www/html
db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=prestashop
Make sure that you have properly configured the database connection in your Prestashop configuration file. You can find this file in the `config` directory of your Prestashop installation.
If you have already deleted the installation folder and the installation page is still showing up, try clearing your browser cache or accessing the page in incognito mode to see if the changes take effect.
If the issue persists, you may need to check the database connection settings in your Docker environment and make sure they match the settings in your Prestashop configuration file.
Rate this post
5 of 5 based on 8648 votesComments