These are chat archives for reactioncommerce/reaction

11th
Jan 2019
rama41222
@rama41222
Jan 11 01:31
version: '3.4'

services:
  reaction:
    image: reactioncommerce/reaction:latest
    networks:
      - reaction
      - database
    ports:
      - "80:3000"
    depends_on:
      - mongo
    env_file:
      - ./../../.env

  mongo:
    image: mongo:3.6.3
    command: mongod --storageEngine=wiredTiger
    ports:
      - "27017:27017"
    networks:
      - database
    volumes:
      - ./../../storage/data:/data
      - ./../../storage/dumps/:/dumps

networks:
  reaction:
  database:
hello guys
I deployed reaction commerce using the following docker-compose
but the data won't persist
volumes:
      - ./../../storage/data:/data
      - ./../../storage/dumps/:/dumps
I used custom directories to check whether the data is being reflected but it's not
what could be the issue?
ROOT_URL=http://localhost
MONGO_URL=mongodb://mongo:27017/reaction
REACTION_EMAIL=  
REACTION_USER= 
REACTION_AUTH=
my env file
Ali Avci
@aiavci
Jan 11 06:50
The last file's variables aren't set
rama41222
@rama41222
Jan 11 09:59
@aiavci yes :D I didn't share them here
anyway the problem is, the data is not persisted. when I restart docker, all the data is gone!!