version: '2'
services:
  postgresql:
    image: postgres:9.4
    expose:
      - "5432"
  elasticsearch:
    image: elasticsearch:1.7
    expose:
      - "9200"
      - "9300"
  redis:
    image: redis:3.0
    expose:
      - "6379"
  site:
    build:
      context: site
      args:
        MB_OAUTH_CLIENT_ID: MBOAuthClientID
        MB_OAUTH_CLIENT_SECRET: MBOAuthClientSecret
        MB_OAUTH_CALLBACK_URL: http:\/\/localhost:9099\/cb
        SESSION_SECRET: SessionSecret
    volumes:
      - "./dumps:/dumps"
    links:
      - "postgresql:db"
      - "redis:redis"
      - "elasticsearch:es"
    ports:
      - "9099:9099"

version: '2'
services:
  postgresql:
    image: postgres:9.4
    expose:
      - "5432"
  elasticsearch:
    image: elasticsearch:1.7
    expose:
      - "9200"
      - "9300"
  redis:
    image: redis:3.0
    expose:
      - "6379"
  site:
    build:
      context: site
      args:
        MB_OAUTH_CLIENT_ID: MBOAuthClientID
        MB_OAUTH_CLIENT_SECRET: MBOAuthClientSecret
        MB_OAUTH_CALLBACK_URL: http:\/\/localhost:9099\/cb
        SESSION_SECRET: SessionSecret
    volumes:
      - "./dumps:/dumps"
    ports:
      - "9099:9099"
  site-dev:
    extends: site
    links:
      - "postgresql:db"
      - "redis:redis"
      - "elasticsearch:es"
  site-prod:
    extends: site
    command: /Start.sh
    links:
      - "postgresql:db"
      - "redis:redis"
      - "elasticsearch:es"

Add site-dev and site-prod services which extend site service
Add site-dev and site-prod services which extend site service
