mirror of https://github.com/docker/compose.git
Move command to fig.yml
As done in the getting started guides. Easier to explain like this, I think.
This commit is contained in:
parent
cbdeff99ee
commit
c270c13baa
|
@ -11,13 +11,13 @@ Define your app's environment with Docker so it can be reproduced anywhere:
|
||||||
ADD . /code
|
ADD . /code
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
CMD python app.py
|
|
||||||
|
|
||||||
Define the services that make up your app so they can be run together in an isolated environment:
|
Define the services that make up your app so they can be run together in an isolated environment:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
|
command: python app.py
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue