D
D
Dmitry Baskakov2020-03-05 13:50:57
Docker
Dmitry Baskakov, 2020-03-05 13:50:57

How to upload your files to bitmani/opencart?

How to upload your files to bitmani/opencart?

using docker-composer if it matters

docker-compose.yml

version: '2'
services:
  mariadb:
    image: 'bitnami/mariadb:10.3'
    environment:
      - MARIADB_USER=bn_opencart
      - MARIADB_DATABASE=bitnami_opencart
      - ALLOW_EMPTY_PASSWORD=yes
    volumes:
      - 'mariadb_data:/bitnami'
  opencart:
    image: 'bitnami/opencart:3'
    environment:
      - MARIADB_HOST=mariadb
      - MARIADB_PORT_NUMBER=3306
      - OPENCART_DATABASE_USER=bn_opencart
      - OPENCART_DATABASE_NAME=bitnami_opencart
      - OPENCART_HOST=localhost
      - ALLOW_EMPTY_PASSWORD=yes
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - 'opencart_data:/bitnami'
    depends_on:
      - mariadb
  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    ports:
      - 82:80
    environment:
        PMA_HOST: mariadb
volumes:
  mariadb_data:
    driver: local
  opencart_data:
    driver: local

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-03-05
@fox_12

volumes:
   - ./путь/откуда/берем/локально/:/путь/куда/кладем/в/контейнере/

for example, I need to change the file in /etc to my own:
volumes:
   - ./etc/somefile.conf:/etc/somefile.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question