version: '2'

services:
  web:
    build: web/
    image: kvikshaug/btc.kvikshaug.no-web
    depends_on:
    - postgres
    volumes:
    - ./web:/app
    ports:
    - "5000:5000"
    environment:
      PYTHONUNBUFFERED: "1"
      CONFIGURATION: "dev"
      FLASK_APP: "app/app.py"
      FLASK_DEBUG: "1"

  builder:
    build: web/app/static/
    image: kvikshaug/btc.kvikshaug.no-web-builder
    volumes:
    - ./web/app/static:/static
    command: sass --scss --watch scss:css

  priceticker:
    build: priceticker/
    image: kvikshaug/btc.kvikshaug.no-priceticker
    depends_on:
    - postgres
    volumes:
    - ./priceticker:/app
    environment:
      PYTHONUNBUFFERED: "1"
      CONFIGURATION: "dev"
    env_file: priceticker/.env

  postgres:
    image: postgres:latest
    volumes:
      - /var/lib/postgresql/data

version: '2'

services:
  web:
    build: web/
    image: kvikshaug/btc.kvikshaug.no-web
    depends_on:
    - postgres
    volumes:
    - ./web:/app
    ports:
    - "5000:5000"
    environment:
      PYTHONUNBUFFERED: "1"
      CONFIGURATION: "dev"
      FLASK_APP: "app/app.py"
      FLASK_DEBUG: "1"

  builder:
    build: web/app/static/
    image: kvikshaug/btc.kvikshaug.no-web-builder
    volumes:
    - ./web/app/static:/static
    command: sass --scss --watch scss:css

  priceticker:
    build: priceticker/
    image: kvikshaug/btc.kvikshaug.no-priceticker
    depends_on:
    - postgres
    volumes:
    - ./priceticker:/app
    environment:
      PYTHONUNBUFFERED: "1"
      CONFIGURATION: "dev"
      SENTRY_DSN: ""

  postgres:
    image: postgres:latest
    volumes:
      - /var/lib/postgresql/data

Disable raven in dev env
Disable raven in dev env
