You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-9Lines changed: 30 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,34 @@ Use can use my [Vagrant Development VM](https://github.com/mblaschke/vagrant-dev
34
34
If you want to run a Docker VM make sure you're using VMware or Parallels Desktop because of
35
35
the much faster virtualisation (networking, disk access, shared folders) compared to VirtualBox.
36
36
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
37
65
38
66
## Create new project
39
67
@@ -65,6 +93,8 @@ elasticsearch (optional) | Elasticsearch server
65
93
memcached (optional) | Memcached server
66
94
redis (optional) | Redis server
67
95
96
+
This directory will be mounted under /docker in main, nginx and httpd container.
97
+
68
98
### Makefile
69
99
70
100
Customize the [Makefile](Makefile) for your needs.
@@ -184,15 +214,6 @@ For better useability track a whole branch (eg. develop or master) as submodule
184
214
Under Linux and MacOS you will be asked for root rights (sudo).
185
215
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)
186
216
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
-
196
217
## Credits
197
218
198
219
This Docker layout is based on https://github.com/denderello/symfony-docker-example/
0 commit comments