Install Docker with Docker Compose.
Note: The application uses port 80, so make sure that other services do not use it.
Check out the git repository:
git clone https://github.com/oroinc/docker-demo.git
cd docker-demoOr download the archive file and extract it:
wget https://github.com/oroinc/docker-demo/archive/master.tar.gz -O - | tar -xzf -
cd docker-demoThe configuration is entirely predefined, and you can only change the domain name where the application will be located. By default, it is oro.demo. If you need to change the domain, edit the .env file and change ORO_APP_DOMAIN=my-custom-domain.demo.
Run init service:
docker compose up restoreAlternatively, you can install the application from scratch, but it will require more time and resources.
Run install service:
docker compose up installYou can run the application as soon as it is installed or initialized.
Run application:
docker compose up applicationThe docker compose will download the required images, create networks and run containers.
Application orocommerce-application is used by default.
If you want to get the application in a different locale, add the contents of the file .env-locale-de_DE or .env-locale-fr_FR to .env and restart the restore service and application.
cat .env-locale-de_DE >> .envTo track the logs from the php-fpm-app container, run docker compose logs -f php-fpm-app. To get the list of containers, run docker compose ps.
127.0.0.1 oro.demo
Now, you can open URL http://oro.demo in your browser.
To access the back-office, use admin as both login and password. To access the storefront, use the credentials of the predefined demo user roles. To log in as a buyer, use [email protected] both as your login and password. To log in as a manager, use [email protected] both as your login and password.
Smtp service is additionally launched so that you can send emails from the application. It receives all mail and has a web interface that enables you to view it and perform the required actions. The web interface for the mail catcher is available at the address http://oro.demo/mailcatcher.
-
To stop and remove all containers, run
docker compose down. -
To stop and remove all containers with the data saved in volumes, run
docker compose down -v.
- If you deployed the application before, pull fresh images with
docker compose pull.
This repository provides a Docker Compose configuration file (compose.yaml) and demonstrates how to run different applications + required services in containers. Oro Inc. provides images with applications Community Edition in public Docker Hub.
This deployment is NOT intended for a production environment.
MIT Copyright (c) 2013 - 2023, Oro, Inc.