Skip to content

Commit dd227fc

Browse files
committed
improve documentation and consistency
1 parent 43a3693 commit dd227fc

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Use the following instructions to start the Project with docker compose.
124124

125125

126126
### Format with Prettier
127-
127+
Run the following command to format files with Prettier:
128128
```shell
129129
docker compose exec node prettier --write src/
130130
```

docker-compose.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ services:
99
build:
1010
context: .
1111
dockerfile: dev/web/Dockerfile
12+
# Use Bash instad of sh (Dash) for improved signal handling
1213
command: /bin/bash -c "
13-
echo 'Starting static webserver at http://127.0.0.1:8080/'
14-
&& /usr/local/bin/httpd-foreground
14+
echo 'Starting static webserver at http://127.0.0.1:8080/';
15+
/usr/local/bin/httpd-foreground
1516
"
1617
container_name: cc-search-web
1718
ports:
@@ -30,10 +31,15 @@ services:
3031
build:
3132
context: .
3233
dockerfile: dev/node/Dockerfile
33-
# continue running until shutdown (this allows docker compose exec which is
34+
# Continue running until shutdown (this allows docker compose exec which is
3435
# much faster than docker compose run)
3536
# Thank you: https://serverfault.com/a/1084975
36-
command: sh -c 'trap "exit" TERM; while true; do sleep 1; done'
37+
command: /bin/sh -c "
38+
trap 'exit' TERM;
39+
echo 'Run the following command to format files with Prettier:';
40+
echo ' docker compose exec node prettier --write src/';
41+
while true; do sleep 1; done
42+
"
3743
container_name: cc-search-node
3844
volumes:
3945
# Mount repository to working directory

0 commit comments

Comments
 (0)