Skip to content

Commit

Permalink
Configure dns (#34)
Browse files Browse the repository at this point in the history
* configure dns for containers

* port 2015 may be used by other services such as a private VPN
  • Loading branch information
Sandro Koll authored Aug 27, 2020
1 parent b14557d commit f102b86
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ caddy-down:

.PHONY: caddy
caddy: caddy-down
docker run -v $(shell pwd):/srv -p 2015:2015 --name caddy -d abiosoft/caddy
docker run -v $(shell pwd):/srv -p 20015:2015 --name caddy -d abiosoft/caddy

.PHONY: build-hammer-image
build-hammer-image:
Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ services:
- K8S_AUTH_KUBECONFIG=/mini-lab/.kubeconfig
network_mode: host
working_dir: /mini-lab
dns:
- 192.168.121.1
- 1.1.1.1
- 1.0.0.1
entrypoint:
- /bin/bash
- -ce
Expand Down Expand Up @@ -50,6 +54,10 @@ services:
- ANSIBLE_VAGRANT_CACHE_MAX_AGE=0
network_mode: host
working_dir: /mini-lab
dns:
- 192.168.121.1
- 1.1.1.1
- 1.0.0.1
entrypoint:
- /bin/bash
- -ce
Expand All @@ -71,4 +79,8 @@ services:
volumes:
- ${HOME}/.ssh:/root/.ssh:ro
network_mode: host
dns:
- 192.168.121.1
- 1.1.1.1
- 1.0.0.1
command: --version
2 changes: 1 addition & 1 deletion files/dev_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
metal_api_image_tag: dev
metal_core_image_name: 192.168.121.1:5000/metalstack/metal-core
metal_core_image_tag: dev
metal_hammer_image_url: http://192.168.121.1:2015/metal-hammer-initrd.img.lz4
metal_hammer_image_url: http://192.168.121.1:20015/metal-hammer-initrd.img.lz4

0 comments on commit f102b86

Please sign in to comment.