Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Solve container names by hostname with dns proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Sep 29, 2018
1 parent 411b0ad commit d305d1c
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ version: '3'

services:
api:
image: humanconnection/api-feathers
container_name: api_api
hostname: api_api
image: humanconnection/api-feathers:edge
build:
context: .
environment:
Expand All @@ -13,31 +15,38 @@ services:
ports:
- "3030:3030"
networks:
hc-network:
ipv4_address: 172.25.0.11
thumbor:
networks:
hc-network:
ipv4_address: 172.25.0.13
- hc-network

maildev:
container_name: api_maildev
hostname: api_maildev
image: djfarrelly/maildev
networks:
- hc-network
ports:
- "1080:80"
- "1025:25"

thumbor:
container_name: api_thumbor
hostname: api_thumbor
image: apsl/thumbor
networks:
- hc-network
ports:
- "8000:8000"

dns-proxy-server:
image: defreitas/dns-proxy-server
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/etc/resolv.conf:/etc/resolv.conf"
ports:
- 5380:5380
hostname: dns.mageddo

networks:
hc-network:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.25.0.0/16

0 comments on commit d305d1c

Please # to comment.