Skip to Content
0
Oct 18, 2019 at 01:32 PM

How to create docker compose for hybris commerce

273 Views

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?