Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
added dns servers (needs to be a parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
greyarch committed Jul 5, 2017
1 parent b11ac71 commit 68f6bb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/coffee/compose.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = (config) ->
netcontainer =
image: config.net_container.image
hostname: "#{serviceName}.#{subDomain}"
dns: ['10.25.55.2', '10.25.55.3']
dns_search: subDomain
cap_add: ["NET_ADMIN"]
labels: labels
Expand Down
1 change: 1 addition & 0 deletions tests/coffee/compose.test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ describe 'Compose', ->
assert.deepEqual doc.services['bb-net-service1'],
image: 'ictu/pipes:2'
hostname: 'service1.instance2.google.com'
dns: ['10.25.55.2', '10.25.55.3']
dns_search: 'instance2.google.com'
cap_add: ['NET_ADMIN']
labels: 'bigboat.service.type': 'net'
Expand Down

0 comments on commit 68f6bb3

Please sign in to comment.