Explorar o código

Document link aliases

Aanand Prasad %!s(int64=11) %!d(string=hai) anos
pai
achega
be1ba818e4
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      docs/yml.md

+ 4 - 1
docs/yml.md

@@ -24,9 +24,12 @@ build: /path/to/build/dir
 -- Override the default command.
 -- Override the default command.
 command: bundle exec thin -p 3000
 command: bundle exec thin -p 3000
 
 
--- Link to containers in another service
+-- Link to containers in another service. Optionally specify an alternate name
+-- for the link, which will determine how environment variables are prefixed,
+-- e.g. "db" -> DB_1_PORT, "db:database" -> DATABASE_1_PORT
 links:
 links:
  - db
  - db
+ - db:database
  - redis
  - redis
 
 
 -- Expose ports. Either specify both ports (HOST:CONTAINER), or just the
 -- Expose ports. Either specify both ports (HOST:CONTAINER), or just the