Problem with Docker

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 3 ans
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?
Il y a 3 ans
hllanos wrote:
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?


To preserve your changes, you need to use docker volume to store app directory for the docker container. When you do store it inside docker volume, each time you spin up container, the docker will start with what you have in image.
Il y a 3 ans
nopAccelerate.com wrote:
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?

To preserve your changes, you need to use docker volume to store app directory for the docker container. When you do store it inside docker volume, each time you spin up container, the docker will start with what you have in image.


do you have any example how to configure it ?
Il y a 3 ans
hllanos wrote:
do you have any example how to configure it ?


Hi,

Here it is:

version: "3.4"
services:
    nopcommerce_web:
        depends_on:
            - db
        image: nop:dev1
        container_name: nop-dev1
        volumes:
            - nopdata1:/app
        ports:
            - "8080:80"
    db:
     image: "mcr.microsoft.com/mssql/server:2017-latest"
     container_name: nop-sql1
     volumes:
       - nopsql1:/var/opt/mssql
     restart: always
     ports:
            - "1433:1433"
     environment:
            SA_PASSWORD: "Pass@Word1"
            ACCEPT_EULA: "Y"
            MSSQL_PID: "Express"

volumes:
  nopsql1:
  nopdata1:


We are using two named volumes which stores db and /app folder.

Moreover, I recommend you to go through Docker basics to understand this clearly.

Thanks,

nopAccelerate Team
Il y a 3 ans
nopAccelerate.com wrote:
do you have any example how to configure it ?

Hi,

Here it is:

version: "3.4"
services:
    nopcommerce_web:
        depends_on:
            - db
        image: nop:dev1
        container_name: nop-dev1
        volumes:
            - nopdata1:/app
        ports:
            - "8080:80"
    db:
     image: "mcr.microsoft.com/mssql/server:2017-latest"
     container_name: nop-sql1
     volumes:
       - nopsql1:/var/opt/mssql
     restart: always
     ports:
            - "1433:1433"
     environment:
            SA_PASSWORD: "Pass@Word1"
            ACCEPT_EULA: "Y"
            MSSQL_PID: "Express"

volumes:
  nopsql1:
  nopdata1:


We are using two named volumes which stores db and /app folder.

Moreover, I recommend you to go through Docker basics to understand this clearly.

Thanks,

nopAccelerate Team


thank you !!  i will to configurate my enviroment.
Il y a 3 ans
hllanos wrote:

thank you !!  i will to configurate my enviroment.


You're welcome. Hope it helps you to use it correctly.

Appreciate an up-vote if this is helpful. :)

Thanks,
nopAccelerate Team
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.