Skip to content

Commit

Permalink
convert p04 md to rst
Browse files Browse the repository at this point in the history
  • Loading branch information
rimelek committed Feb 20, 2021
1 parent 54b2dfc commit 9246c7c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 36 deletions.
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ You can try with more recent versions but some behaviour could be different in t
projects/p00
projects/p01
projects/p02
projects/p03
projects/p03
projects/p04
46 changes: 46 additions & 0 deletions docs/projects/p04.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.. _Docker Compose: https://docs.docker.com/compose/

======================================
Create a simple Docker Compose project
======================================

Go to Project 4 from the git repository root:

.. code:: bash
cd projects/p04
Build an image and start the container using `Docker Compose`_:

.. code:: bash
docker-compose up -d
Check the container:

.. code:: bash
docker-compose ps
# The name of the container: p04_php_1
Check the networks:

.. code:: bash
docker network ls
# New bridge network: p04_default
Delete the container, and networks with Docker Compose:

.. code:: bash
docker-compose down
Or delete the volumes too.

.. code:: bash
docker-compose down --volume
docker-compose down
35 changes: 0 additions & 35 deletions projects/p04/README.md
Original file line number Diff line number Diff line change
@@ -1,35 +0,0 @@
Build an image and start the container using [Docker Compose](https://docs.docker.com/compose/):

```bash
docker-compose up -d
```

Check the container:

```bash
docker-compose ps
# The name of the container: p04_php_1
```

Check the networks:

```bash
docker network ls
# New bridge network: p04_default
```

Delete the container, and networks with Docker Compose:

```bash
docker-compose down
```

Or delete the volumes too.

```bash
docker-compose down --volume
```

docker-compose down

[Back to the main page](../../README.md)

0 comments on commit 9246c7c

Please sign in to comment.