version: '2'
services:
  postgres:
    container_name: postgresql_BFA
    image: postgres
    env_file: ./envs/pg.env
    volumes:
      - pgs:/var/lib/postgresql/data/
    ports:
      - "5430:5430"

  bridge:
    container_name: BFA_local
    build:
      context: .
      dockerfile: Dockerfile_local
    command: bash -c "sleep 5 && python manage.py runserver 0.0.0.0:8008 --settings=config.settings.local"
    volumes:
      - .:/bridge_adaptivity
    ports:
      - "8008:8008"
    links:
      - postgres
    stdin_open: true
    tty: true

volumes:
  pgs:

version: '2'
services:
  postgres:
    container_name: postgresql_BFA
    image: postgres
    env_file: ./envs/pg.env
    volumes:
      - pgs:/var/lib/postgresql/data/
    ports:
      - "5430:5432"

  bridge:
    container_name: BFA_local
    build:
      context: .
      dockerfile: Dockerfile_local
    command: bash -c "sleep 5 && python manage.py runserver 0.0.0.0:8008 --settings=config.settings.local"
    volumes:
      - .:/bridge_adaptivity
    ports:
      - "8008:8008"
    links:
      - postgres
    stdin_open: true
    tty: true

volumes:
  pgs:

Change docker-compose db port mapping for local dev
Change docker-compose db port mapping for local dev
