Skip to Content

How to create docker compose for hybris commerce

I am trying to create a docker to run hybris.

This is my code:

version: '3.3'

services:
  db:
    image: mysql:5.6
    volumes:
      - c:/bd_hybris:/var/lib/mysql
    container_name: mysql_hybris
    hostname: mysql_hybris
    ports:
      - "3307:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=****
      - MYSQL_DATABASE=****
      - MYSQL_USER=****
  hybris:
    image: debian:latest
    volumes:
      - c:/Hybris:/app/hybris_dev/
    command: bash -c "cd /app/hybris_dev/installer && rm -R recipes &&
                      cp -r /app/hybris_dev/hybris/bin/custom/recipes /app/hybris_dev/intaller/ &&
                      cd /app/hybris_dev/intaller/ && ./install.sh -r local setup &&
                      cd /app/hybris_dev/hybris/bin/custom/platform && ./setantenv.sh &&
                      ant initialize && ant clean all && ./hybrisserver.sh"
    container_name: hybris_dev
    hostname: hybris_dev
    links:
      - db

Can anyone help me with this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.