Skip to content

Commit 706857f

Browse files
committed
chore(docker): add YAML document start marker for clarity
feat(docker): mount assets directory in production for static files Adding the YAML document start marker (`---`) at the beginning of both `docker-compose.dev.yml` and `docker-compose.yml` files improves readability and clarity, indicating the start of a YAML document. The addition of the `./assets:/app/assets` volume in the production `docker-compose.yml` file allows the application to access static files, which is essential for serving assets like images, stylesheets, or scripts in a production environment.
1 parent 561145b commit 706857f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docker-compose.dev.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
13
# NOTE: This file is used for local development purposes only.
24

35
services:

docker-compose.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
13
# NOTE: This file is used for production deployment.
24

35
services:
@@ -11,6 +13,7 @@ services:
1113
volumes:
1214
- ./config:/app/config:ro
1315
- ./tux:/app/tux
16+
- ./assets:/app/assets
1417
env_file:
1518
- .env
16-
restart: unless-stopped
19+
restart: unless-stopped

0 commit comments

Comments
 (0)