Skip to content

Commit 251cf9e

Browse files
committed
docs: standardize compose env_file object syntax
1 parent 0f70291 commit 251cf9e

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

examples/deployment/docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ services:
22
html2rss-web:
33
image: html2rss/web:latest
44
restart: unless-stopped
5-
env_file: .env
5+
env_file:
6+
- path: .env
7+
required: false
68
environment:
79
PORT: 4000
810

src/components/docs/DockerComposeSnippet.astro

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const snippets: Record<Props["variant"], string> = {
1515
restart: unless-stopped
1616
ports:
1717
- "127.0.0.1:4000:4000"
18-
env_file: .env
18+
env_file:
19+
- path: .env
20+
required: false
1921
environment:
2022
RACK_ENV: production
2123
PORT: 4000
@@ -56,7 +58,9 @@ const snippets: Record<Props["variant"], string> = {
5658
html2rss-web:
5759
image: ${webImage}
5860
restart: unless-stopped
59-
env_file: .env
61+
env_file:
62+
- path: .env
63+
required: false
6064
environment:
6165
RACK_ENV: production
6266
PORT: 4000
@@ -82,7 +86,9 @@ volumes:
8286
html2rss-web:
8387
image: ${webImage}
8488
restart: unless-stopped
85-
env_file: .env
89+
env_file:
90+
- path: .env
91+
required: false
8692
environment:
8793
RACK_ENV: production
8894
PORT: 4000

0 commit comments

Comments
 (0)