version: '2'
services:
  web:
    build:
      context: .
      # dockerfile: build/Dockerfile
    environment:
      - PYCROFT_DB_URI=postgresql://postgres:password@db:5432
    command: python server_run.py --debug --exposed
    ports:
      - 5001:5000
  db:
    image: postgres
    environment:
      - POSTGRES_PASSWORD=password
      - PGDATA=/postgres
    tmpfs:
      - /postgres

version: '2'
services:
  web:
    build:
      context: .
      # dockerfile: build/Dockerfile
    environment:
      - PYCROFT_DB_URI=postgresql://postgres:password@db:5432/pycroft
    command: python server_run.py --debug --exposed
    ports:
      - 5001:5000
  db:
    image: postgres
    environment:
      - POSTGRES_PASSWORD=password
      - PGDATA=/postgres
    tmpfs:
      - /postgres

Fix db path in docker-compose.yml
Fix db path in docker-compose.yml
