Public Repository

Last pushed: a day ago
Short Description
Reaction Commerce - modern reactive ecommerce platform.
Full Description

Reaction Commerce

Docs

https://docs.reactioncommerce.com

Forum

https://forums.reactioncommerce.com

These official releases of Reaction Commerce are automated builds from Circle CI that are triggered every time code is merged into the master branch on Github. The image tags you see here are based on the Circle CI build numbers (the :latest tag will always be the latest build).

All you need to run the latest stable build of Reaction is a single Docker command:

# REACTION_EMAIL - default admin email
# REACTION_USER - default admin username
# REACTION_AUTH - default admin password

docker run -d \
  -p 80:3000 \
  -e ROOT_URL="http://<your app url>" \
  -e REACTION_EMAIL="you@example.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  reactioncommerce/reaction:latest

This container exposes the app on port 3000 by default, so you will need to map that port to whatever port you want for your deployment. The example above maps port 80 on your host to port 3000 on the container (-p 80:3000). Also note that we haven't specified a MONGO_URL above, so the container will use an internal Mongo database. This isn't recommended for production deployments, but it's fine for testing. To specify an external database, all you need to do is add the MONGO_URL environment variable:

docker run -d \
  -p 80:3000 \
  -e ROOT_URL="http://<your app url>" \
  -e MONGO_URL="mongodb://<your mongo url>" \
  -e REACTION_EMAIL="you@example.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  reactioncommerce/reaction:latest
Docker Pull Command
Owner
reactioncommerce

Comments (8)
jshimko
7 months ago

For anyone that posts comments here in the future, please note that nobody on the team gets notified about these comments and you are highly unlikely to get a response. (thanks Docker!)

If you have a question or need support, please post it in the Reaction Forum:
https://forums.reactioncommerce.com/

If you believe there is an issue with the app, please open an issue on Github:
https://github.com/reactioncommerce/reaction/issues

epifaniacollection
10 months ago

instead of mongo:latest ideally use mongo:3.0
or 2.6. (mongo 3.1 not fully supported for now)

audiojak
a year ago

This docker compose configuration can be used to alter the attribute verified to true on the field email in users to allow for admin login.

  ##docker-compose.yml file contents
  reaction:
    image: reactioncommerce/reaction
    links:
      - mongo
    ports:
      - "80:80"
    environment:
      ROOT_URL: "http://localhost"
      MONGO_URL: "mongodb://mongo:27017/meteor"
      REACTION_EMAIL: "john.kennedy@acquia.com"
      REACTION_USER: "admin"
      REACTION_AUTH: "password"

  mongo:
    image: mongo:latest
    ports:
      - "27017:27017"
    command: mongod --storageEngine=wiredTiger

  mongo-express:
    image: mongo-express:latest
    ports:
      - "8081:8081"
    links:
      - mongo
khcarlso
a year ago

I got the same error. Figured out an easy way to get this Reaction running using docker-compose.

  • Create a directory called Reaction (or whatever you'd like). Creating a directory isn't necessary, but it keeps things clean.
  • Create a docker-compose.yml file in the above directory with the content below.
  • docker-compose up -d
##docker-compose.yml file contents
reaction:
  image: reactioncommerce/reaction
  links:
    - mongo
  ports:
    - "80:80"
  environment:
    ROOT_URL: "http://whatever.com"
    MONGO_URL: "mongodb://mongo:27017/meteor"

mongo:
  image: mongo:latest
  ports:
    - "27017:27017"
  command: mongod --storageEngine=wiredTiger

Mapping the port on the host isn't strictly necessary. I did it to use a host based mongo viewer/editor.

Hope that helps!

garyfitze
a year ago

Same Error as kiksen1987

ERROR: Mongo not installed inside container. Rebuild with INSTALL_MONGO=true

kiksen1987
a year ago

Hi.
When i try to start your project i get:
ERROR: Mongo not installed inside container. Rebuild with INSTALL_MONGO=true

frnksnck
2 years ago

Quick Start

Just pull the repo:
docker pull reactioncommerce/reaction
And run the container like this:
docker run --rm --name shop -p 8080:3000 reactioncommerce/reaction

The container with the name 'shop' is exposing port 8080 (container internally it's port 3000).
On the host machine you can now browse to:
http://localhost:8080/
The site should appear.

The --rm argument removes the container when it is stopped. Together with the --name argument this prevents cluttering your testing environment with numerous forgotten containers with generic names.

tcurdt
2 years ago

Some instructions on how to run the container would be nice.