@@ -18,18 +18,18 @@ _You should see something like the following:_
1818
1919: ` Docker version 20.10.14, build a224086 `
2020
21- The latest version of Docker Desktop comes with docker- compose installed. To
22- verify you have successfully installed docker- compose, run:
21+ The latest version of Docker Desktop comes with docker compose installed. To
22+ verify you have successfully installed docker compose, run:
2323
24- docker- compose -v
24+ docker compose -v
2525
2626_ You should see something like the following:_
2727
2828 Docker Compose version v2.5.1
2929
30- If docker- compose is not installed, visit
30+ If docker compose is not installed, visit
3131< https://docs.docker.com/compose/install/ > and follow the installation
32- instructions to download docker- compose.
32+ instructions to download docker compose.
3333
3434### Running MetaDeploy In Docker
3535
@@ -106,17 +106,17 @@ a plan.
106106 Code] ( #docker-development-using-vs-code ) .
107107
108108
109- This next section assumes you have installed ` docker ` and ` docker- compose ` .
109+ This next section assumes you have installed ` docker ` and ` docker compose ` .
110110Additionally it assumes you have a ` .env ` file in the root directory of this
111111project, a template of variables needed can be found in ` env.example ` .
112112
113113To configure and run your environment you must run two commands in the project
114- root. Note that ` docker- compose build ` will take some significant time to build
114+ root. Note that ` docker compose build ` will take some significant time to build
115115the first time but will be much faster for subsequent builds. It is also
116116important to note that once you bring up the web application it will take a
117117minute or two to build.
118118
119- docker- compose build
119+ docker compose build
120120
121121## Running Your Docker Containers
122122
@@ -125,16 +125,16 @@ and the creation of a default admin user.
125125
126126If you would like to disable this functionality please add a
127127` DJANGO_SETTINGS_MODULE ` environment variable in the web service section of the
128- docker- compose file to set it from its default value (set in Dockerfile) from
128+ docker compose file to set it from its default value (set in Dockerfile) from
129129` config.settings.local ` to ` config.settings.production ` . For examples of how to
130- do this please see [ setting docker- compose environment
130+ do this please see [ setting docker compose environment
131131variables] ( https://docs.docker.com/compose/environment-variables/ ) .
132132
133133Then run the following command:
134134
135- docker- compose up -d
135+ docker compose up -d
136136 or
137- docker- compose up (for debug mode)
137+ docker compose up (for debug mode)
138138
139139This command may take a few minutes to finish. Once it's done, visit
140140` localhost:8000/admin/login ` and login with the following credentials if
@@ -149,27 +149,27 @@ account will not be created when `BUILD_ENV` is set to `production`.
149149
150150## Docker Commands
151151
152- To stop your virtual containers run the following command (the docker- compose
152+ To stop your virtual containers run the following command (the docker compose
153153stop command will stop your containers, but it won't remove them):
154154
155- docker- compose stop
155+ docker compose stop
156156
157157To start your virtual containers run the following command:
158158
159- docker- compose start
159+ docker compose start
160160
161161To bring your virtual containers up for the first time run the following
162162command:
163163
164- docker- compose up -d
164+ docker compose up -d
165165
166166To bring your virtual containers down run the following command:
167167
168168> ** Note**
169- > The docker- compose down command will stop your containers, but also removes
169+ > The docker compose down command will stop your containers, but also removes
170170 the stopped containers as well as any networks that were created.
171171
172- docker- compose down
172+ docker compose down
173173
174174Removes stopped service containers. To remove your stopped containers enter the
175175following commands
@@ -178,28 +178,28 @@ following commands
178178> This will destroy anything that is in the virtual environment, however the
179179 database data will persist
180180
181- docker- compose rm
181+ docker compose rm
182182
183183(then enter ` y ` when prompted. If you would like to clear the database as well
184- include a -v flag i.e. ` docker- compose down -v ` )
184+ include a -v flag i.e. ` docker compose down -v ` )
185185
186186To view all running services run the following command:
187187
188- docker- compose ps
188+ docker compose ps
189189
190190If you'd like to test something out manually in that test environment for any
191191reason you can run the following: In order to run relevant management commands
192192like ` manage.py makemigrations ` , or if you'd like to test something
193193out manually in that test environment for any reason you can run the following:
194194
195- docker- compose exec web bash
195+ docker compose exec web bash
196196
197197After this you will be inside of a linux commandline, and are free to test
198198around in your container.
199199
200200Or you could directly run a command like this:
201201
202- docker- compose exec web python manage.py makemigrations
202+ docker compose exec web python manage.py makemigrations
203203
204204## Docker development using VS Code
205205
@@ -212,19 +212,19 @@ extension pack.
212212
213213Once you have the extension pack installed, when you open the MetaDeploy folder
214214in VS Code, you will be prompted to "Reopen in Container". Doing so will
215- effectively run ` docker- compose up ` and reload your window, now running inside
215+ effectively run ` docker compose up ` and reload your window, now running inside
216216the Docker container. If you do not see the prompt, run the "Remote-Containers:
217217Open Folder in Container\. .." command from the VS Code Command Palette to start
218218the Docker container.
219219
220220A number of project-specific VS Code extensions will be automatically installed
221221for you within the Docker container. See ` .devcontainer/devcontainer.json ` and
222- ` .devcontainer/docker- compose.dev.yml ` for Docker-specific VS Code settings.
222+ ` .devcontainer/docker compose.dev.yml ` for Docker-specific VS Code settings.
223223
224224The first build will take a number of minutes, but subsequent builds will be
225225significantly faster.
226226
227- Similarly to the behavior of ` docker- compose up ` , VS Code automatically runs
227+ Similarly to the behavior of ` docker compose up ` , VS Code automatically runs
228228database migrations and starts the development server/watcher. To run any local
229229commands, open an
230230[ integrated terminal] ( https://code.visualstudio.com/docs/editor/integrated-terminal )
@@ -236,7 +236,7 @@ RUNNING.RST and CONTRIBUTING.RST):
236236 $ yarn serve # start the development server/watcher
237237
238238For any commands, when using the VS Code integrated terminal inside the Docker
239- container, omit any ` docker- compose run --rm web... ` prefix, e.g.:
239+ container, omit any ` docker compose run --rm web... ` prefix, e.g.:
240240
241241 $ python manage.py promote_superuser <your email>
242242 $ yarn test:js
0 commit comments