version: '2'
services:
  composer:
    image: prooph/composer:7.1
    volumes:
      - .:/app
    links:
      - postgres:postgres
      - mysql:mysql

  postgres:
    image: postgres:alpine
    ports:
      - 5432:5432
    environment:
      - POSTGRES_DB=event_store_tests

  mysql:
    image: mysql
    ports:
     - 3306:3306
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
      - MYSQL_DATABASE=event_store_tests

version: '2'
services:
  composer:
    image: prooph/composer:7.1
    volumes:
      - .:/app
    links:
      - postgres:postgres
      - mysql:mysql

  postgres:
    image: postgres:alpine
    environment:
      - POSTGRES_DB=event_store_tests

  mysql:
    image: mysql
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
      - MYSQL_DATABASE=event_store_tests

Remove port bindings from docker-compose
Remove port bindings from docker-compose

Each container will have it's own IP that you can use to connect to MySQL/Postgres.

This commit allows for people running existing applications on these ports not to have to stop them as there is no reason to bind in the first place.

The `composer` container will have access to the other containers regardless.