version: '3'
services:
  pybossa:
    build:
      context: ./docker
      dockerfile: ./Dockerfile
      args:
        - PYBOSSA_COMMIT="${PYBOSSA_COMMIT:-master}"
    environment:
      - PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
      - PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
      - PYBOSSA_DATABASE_URL=postgresql://dfuser:test-only-RDkWWAG9jXMAFO8pXu6K@pybossa-db/dforce
      - PYBOSSA_ITSDANGEROUS_SECRET=test-only-2R1ucOk8KxEeh5SCaXcWPt4oDf2sHQvpiyHAPoyX
      - PYBOSSA_BRAND=Deciding Force
      - PYBOSSA_TITLE=Deciding Force
      - PYBOSSA_LOGO=default_logo.svg
    depends_on:
      - pybossa-db
    ports:
      - "8000:80"

  pybossa-db:
    image: postgres:9.4
    environment:
      - POSTGRES_USER=dfuser
      - POSTGRES_PASSWORD=test-only-RDkWWAG9jXMAFO8pXu6K
      - POSTGRES_DB=dforce

version: '3'
services:
  pybossa:
    build:
      context: ./docker
      dockerfile: ./Dockerfile
      args:
#       - PYBOSSA_COMMIT="${PYBOSSA_COMMIT:-master}"
        # c2d7630 is Feb 7 2018 commit with JSONB API, two commits after v2.9.0
        - PYBOSSA_COMMIT="c2d7630"
    environment:
      - PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
      - PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
      - PYBOSSA_DATABASE_URL=postgresql://dfuser:test-only-RDkWWAG9jXMAFO8pXu6K@pybossa-db/dforce
      - PYBOSSA_ITSDANGEROUS_SECRET=test-only-2R1ucOk8KxEeh5SCaXcWPt4oDf2sHQvpiyHAPoyX
      - PYBOSSA_BRAND=Deciding Force
      - PYBOSSA_TITLE=Deciding Force
      - PYBOSSA_LOGO=default_logo.svg
    depends_on:
      - pybossa-db
    ports:
      - "8000:80"

  pybossa-db:
    image: postgres:9.6
    environment:
      - POSTGRES_USER=dfuser
      - POSTGRES_PASSWORD=test-only-RDkWWAG9jXMAFO8pXu6K
      - POSTGRES_DB=dforce

Update to Feb 7, 2018 version of Pybossa with JSONB. Update postgres image to 9.6.
Update to Feb 7, 2018 version of Pybossa with JSONB. Update postgres image to 9.6.
