mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
added documentation to README for custom services
This commit is contained in:
parent
8d508a4d24
commit
905571ce84
1 changed files with 12 additions and 1 deletions
13
README.md
13
README.md
|
@ -269,11 +269,22 @@ services:
|
|||
|
||||
If you omit the version, Drone will launch the latest version of the database. (For example, if you set `mongodb`, Drone will launch MongoDB 2.4.)
|
||||
|
||||
**NOTE:** database and service containers are exposed over TCP connections and
|
||||
You can also launch custom Docker containers using standard docker notation:
|
||||
|
||||
```sh
|
||||
services:
|
||||
- dockerfile/rethinkdb # same as dockerfile/rethinkdb:latest
|
||||
- barnybug/elasticsearch:1.0.1
|
||||
```
|
||||
|
||||
**NOTE 1:** database and service containers are exposed over TCP connections and
|
||||
have their own local IP address. If the **socat** utility is installed inside your
|
||||
Docker image, Drone will automatically proxy localhost connections to the correct
|
||||
IP address.
|
||||
|
||||
**NOTE 2:** avoid running services that use the same ports. For example, don't specify
|
||||
multiple versions of Elastic Search since the port will already be in use.
|
||||
|
||||
### Caching
|
||||
|
||||
Drone can persist directories between builds. This should be used for caching dependencies to
|
||||
|
|
Loading…
Reference in a new issue