Skip to content

Commit 002364d

Browse files
author
stormcat24
committed
add env_file document
1 parent 99b5f03 commit 002364d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,20 @@ You can set value for these parameters by using `-p` option.
234234
ecs-formation task -p NGINX_VERSION=1.0 -p NGINX_PORT=80 plan your-web-task
235235
```
236236
237+
#### env_file
238+
239+
You can use `env_file` like docker-compose. https://docs.docker.com/compose/compose-file/#env-file
240+
241+
```Ruby
242+
nginx:
243+
image: stormcat24/nginx:${NGINX_VERSION}
244+
ports:
245+
- 80:${NGINX_PORT}
246+
env_file:
247+
- ./test1.env
248+
- ../test2.env
249+
```
250+
237251
License
238252
===
239253
See [LICENSE](LICENSE).

0 commit comments

Comments
 (0)