File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,14 @@ Setting up the app in a Docker-based environment enables developers of non-Windo
49
49
` ` `
50
50
51
51
8. Ensure Docker is running.
52
- 9. Then, in the root directory of the project, execute the following command to build a container for ` document-service`:
52
+ 9. Execute the following commands to dockerize ` document-service` using `docker-compose.yaml `:
53
53
54
54
` ` ` shell
55
- docker-compose -f docker-compose.yaml up
55
+ # build the container
56
+ docker compose build
57
+
58
+ # run the application
59
+ docker compose up
56
60
` ` `
57
61
58
62
10. The project will run on `http://localhost:5000`. Please check [Troubleshooting](#troubleshooting) if the build failed.
@@ -80,7 +84,10 @@ E: Failed to fetch http://sample/link/for.file Unable to connect to sample.downl
80
84
docker system prune -a
81
85
82
86
# rebuild the container
83
- docker-compose -f docker-compose.yaml up
87
+ docker compose build
88
+
89
+ # run the application
90
+ docker compose up
84
91
` ` `
85
92
86
93
**NOTE:** Please go through the [official documentation on prune command](https://docs.docker.com/config/pruning/) before using it.
Original file line number Diff line number Diff line change 1
- version : " 3.8"
2
1
services :
3
2
document-service :
4
3
build :
You can’t perform that action at this time.
0 commit comments