Sign inSign up

danelsan/opencart

By danelsan

•Updated 6 months ago

Opencart into docker container

Image
0

915

danelsan/opencart repository overview

⁠How use image opencart:

If you want use this image whit docker-compose write a file docker-compose.yml:

version: "3.9"

services:
  opencart-app:
    image: opencart:2.0.2.0
    deploy:
      restart_policy:
        condition: on-failure
    environment:
      - OC_URL_HTTP=http://localhost:8083
      - OC_URL_HTTPS=http://localhost:8083
      - OC_DB_HOST=db
      - OC_DB_USER=root
      - OC_DB_PASS=test
      - OC_DB_NAME=oc
      - OC_DB_PREFIX=oc_
    ports:
      - "8083:80"
    networks:
      - microservice
      - mysql

  db:
    image: mariadb:10.6.4
    hostname: db
    volumes:
      - opencart_db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=test
    deploy:
      resources:
        limits:
          cpus: "0.4"
          memory: "500M"
        reservations:
          cpus: "0.2"
          memory: "300M"
    networks:
      - mysql


networks:
  microservice:
    external: true
  mysql:
    external: false

volumes:
  opencart_db:

Tag summary

Content type

Image

Digest

sha256:9bd930640…

Size

225.4 MB

Last updated

6 months ago

docker pull danelsan/opencart