Skip to content

Commit 587783d

Browse files
committed
Added short introduction for docker
1 parent e836a23 commit 587783d

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,34 @@ Use can use my [Vagrant Development VM](https://github.com/mblaschke/vagrant-dev
3434
If you want to run a Docker VM make sure you're using VMware or Parallels Desktop because of
3535
the much faster virtualisation (networking, disk access, shared folders) compared to VirtualBox.
3636

37+
## Docker short introduction
38+
39+
Create and start containers (eg. first start):
40+
41+
$ docker-compose up -d
42+
43+
Stop containers
44+
45+
$ docker-compose stop
46+
47+
Start containers (only stopped containers)
48+
49+
$ docker-compose start
50+
51+
Build (but not create and start) containers
52+
53+
$ docker-compose build --no-cache
54+
55+
Delete container content
56+
57+
$ docker-compose rm --force
58+
59+
Recreate containers (if there is any issue or just to start from a clean build)
60+
61+
$ docker-compose stop
62+
$ docker-compose rm --force
63+
$ docker-compose build --no-cache
64+
$ docker-compose up -d
3765

3866
## Create new project
3967

@@ -65,6 +93,8 @@ elasticsearch (optional) | Elasticsearch server
6593
memcached (optional) | Memcached server
6694
redis (optional) | Redis server
6795

96+
This directory will be mounted under /docker in main, nginx and httpd container.
97+
6898
### Makefile
6999

70100
Customize the [Makefile](Makefile) for your needs.
@@ -184,15 +214,6 @@ For better useability track a whole branch (eg. develop or master) as submodule
184214
Under Linux and MacOS you will be asked for root rights (sudo).
185215
If you don't want to enter your password every time [take a look at the vagrant manual for NFS usage](https://docs.vagrantup.com/v2/synced-folders/nfs.html)
186216

187-
## Recreate docker containers
188-
189-
If your docker containers crashed or you want to recreate and rebuild it:
190-
191-
$ docker-compose stop
192-
$ docker-compose rm --force
193-
$ docker-compose build --no-cache
194-
$ docker-compose up -d
195-
196217
## Credits
197218

198219
This Docker layout is based on https://github.com/denderello/symfony-docker-example/

0 commit comments

Comments
 (0)