web:
    build: .
    links:
        - database
    volumes:
        - .:/app
    ports:
        - 80:80

database:
    image: mysql
    environment:
        MYSQL_ROOT_PASSWORD: changeme
        MYSQL_DATABASE: api_platform
        MYSQL_USER: api_platform
        MYSQL_PASSWORD: api_platform
