Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation is triggered at every container start #381

Open
krodelabestiole opened this issue Apr 28, 2024 · 0 comments
Open

installation is triggered at every container start #381

krodelabestiole opened this issue Apr 28, 2024 · 0 comments

Comments

@krodelabestiole
Copy link

Hi I'm trying to use a dockerised prestashop from an existing install.
Since I work on custom theme, modules and probably overrides I would like to persist /var/www/html.

I have my existing database running, but every time I start prestashop it triggers the installer.
The first time is ok I guess because it has to create files.

Then the next times, prestashop will create an install.lock file and will fail to get over the installation because the admin Backoffice directory is not empty.
Then it will run into this Another setup is currently running issue.

I bind /var/www/html to a local directory :

    volumes:
      - type: bind
        source: ./src
        target: /var/www/html
    environment:
      - PS_DEV_MODE=0
      - PS_INSTALL_AUTO=0
      - TZ
      - DB_SERVER=db
      - DB_NAME=${MYSQL_DATABASE}
      - DB_USER=${MYSQL_USER}
      - DB_PASSWORD=${MYSQL_PASSWORD}
      - DB_PREFIX=prstshp_
      - PS_ALL_LANGUAGES=1
      - PS_FOLDER_ADMIN=Backoffice
      - PS_ENABLE_SSL=0

Unfortunately the PS_INSTALL_AUTO doesn't seem to do anything.

I don't see what triggers the installation and how to disable it, based on the doc I could find :
https://devdocs.prestashop-project.org/8/basics/installation/environments/docker/

What would be the way to totally disable the installer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant