Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Add docker-compose example to README #96

Open
KCErb opened this issue Aug 3, 2016 · 1 comment
Open

Add docker-compose example to README #96

KCErb opened this issue Aug 3, 2016 · 1 comment

Comments

@KCErb
Copy link

KCErb commented Aug 3, 2016

Hi, I'm new to docker-compose and wanted to use this docker container in my project. I'm a little unsure what that would look like. Here's my best guess, can you advise?

php:
  build: ./php/
  links:
    - composer
# skipping lines . . .

composer:
  build: ./composer/
# etc...

And then inside of ./composer/ a Dockerfile like so

FROM composer/composer

# Use local composer.json file
COPY ./composer.json /var/www/html/composer.json
WORKDIR /var/www/html
RUN composer install

Thanks for the great project(s)!

@otravers
Copy link

I was struggling with this, here's the comment that solved it for me:
#88 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants