version: '3' services: ro-redis: container_name: ro-redis image: redis:3.2 volumes: - ./output/redis:/data ro-db: container_name: ro-db image: mongo:3.0 volumes: - ./output/mongo:/data/db # ro-es: # container_name: ro-es # image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2 # ports: # - 9400:9200 # - 9500:9300 # volumes: # - ./output/posts:/data/posts ro-pull: container_name: ro-pull build: context: . dockerfile: ./pull/Dockerfile environment: REDDIT_UA: web:RedditOutreach:v0.0.1 (by /u/stvhl) REDDIT_KEY: N1B0RU93Rkk5OUJ2OFE6RE1RR2x1WG16SnFINjZzNU1fU3cwMS1mLUQ4 depends_on: - ro-redis - ro-process - ro-db command: ["./wait-for-it.sh", "ro-db:27017", "--", "npm", "start"] ro-process: container_name: ro-process build: context: . dockerfile: ./process/Dockerfile volumes: - ./output:/usr/db depends_on: - ro-redis - ro-db command: ["./wait-for-it.sh", "ro-db:27017", "--", "npm", "start"] ro-front: container_name: ro-front build: context: . dockerfile: ./front/Dockerfile depends_on: - ro-db ports: - 4000:3000 command: ["./wait-for-it.sh", "ro-db:27017", "--", "node", "./build/server.js"]