Changes between Version 15 and Version 16 of dockerdeployment2023
- Timestamp:
- Dec 11, 2023, 10:44:44 AM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dockerdeployment2023
v15 v16 327 327 328 328 This command tells Docker to build an image using the Dockerfile in the current directory (.) and tag it as `my-webserver:latest`. 329 329 330 330 Best Practices 331 331 … … 394 394 }}} 395 395 396 Start the !WordPress and Database Containers:Navigate to the directory containing the `docker-compose.yml` file and run:396 '''Start the !WordPress and Database Containers:'''Navigate to the directory containing the `docker-compose.yml` file and run: 397 397 398 398 `docker compose up -d` 399 399 400 400 This command will start the services in detached mode. Once the services are up, you can access the !WordPress site by navigating to `http://<MASTER_IP>:8080` from your browser. 401 402 Stopping the Services:To stop the services, navigate to the same directory and run:401 402 '''Stopping the Services:''' To stop the services, navigate to the same directory and run: 403 403 404 404 `docker compose down`