Skip to content

Instantly share code, notes, and snippets.

@railson-ferreira
Created July 13, 2022 18:45
Show Gist options
  • Select an option

  • Save railson-ferreira/41a43ef9b6fcba76b705907a1ec392c0 to your computer and use it in GitHub Desktop.

Select an option

Save railson-ferreira/41a43ef9b6fcba76b705907a1ec392c0 to your computer and use it in GitHub Desktop.
Docker Compose for Local Network Https Development ( DNS Server + Bore )
version: '2'
services:
dns:
restart: always
image: strm/dnsmasq
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.conf
ports:
- "53:53/udp"
cap_add:
- NET_ADMIN
bore:
restart: always
image: ekzhang/bore
command:
- "server"
ports:
- "7835:7835/tcp"
- "3000-3999:3000-3999/tcp"
@railson-ferreira
Copy link
Author

railson-ferreira commented Jul 13, 2022

You also need to create a dnsmasq.conf file as shown in the example below:

#use google as default nameservers
server=8.8.8.8
server=8.8.4.4
#explicitly define host-ip mappings
address=/yourdomain.test/192.168.x.x

You must have a self-signed certificate to use https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment