Skip to content

Commit d055cd3

Browse files
build: migrate to docker compose v2 (#37)
1 parent b863ccd commit d055cd3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ Setting up the app in a Docker-based environment enables developers of non-Windo
4949
```
5050
5151
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`:
5353

5454
```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
5660
```
5761

5862
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
8084
docker system prune -a
8185
8286
# rebuild the container
83-
docker-compose -f docker-compose.yaml up
87+
docker compose build
88+
89+
# run the application
90+
docker compose up
8491
```
8592

8693
**NOTE:** Please go through the [official documentation on prune command](https://docs.docker.com/config/pruning/) before using it.

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.8"
21
services:
32
document-service:
43
build:

0 commit comments

Comments
 (0)