DevelopingSpace / starchart

A self-serve tool for managing custom domains and certificates
MIT License
21 stars 13 forks source link

Get experimental architecture working in docker-compose #2

Closed humphd closed 1 year ago

humphd commented 1 year ago

I'm hoping to mimic the setup we need via docker-compose, namely:

I've created and pushed an initial docker-compose.yml which creates all of the above, using two PowerDNS containers. I've defined their pdns.conf files in config/*.

I need some help figuring out the various pdnsutil commands to run in order to properly setup the server(s) and to create a zone, for example: starchart.com. I've assigned static IPs as follows:

Running docker-compose up gets all of this running, but there is obviously more config to do.

I think a great test case would be:

  1. define a zone, starchart.com, on the primary
  2. set all the records to get everything setup correctly (this is where I'm stuck). For example: NS, A, etc.
  3. include a subdomain for the web server at 10.5.0.100 so you can hit www.starchart.com and get to nginx
  4. get the primary to notify the secondary of the zone update, and have it sync there
  5. use the secondary as our DNS to resolve www.starchart.com and get its default static page
ctyler commented 1 year ago

You'll need to expose UDP/53 from .10 and web (TCP/80&443) from .100 to the host to test this as you describe, assuming that you're testing from the host ("host" has lots of meaning here, I assume you're speaking of the system hosting the containers).

humphd commented 1 year ago

That isn't really my issue. See my PR at https://github.com/Seneca-CDOT/starchart/pull/3 for details.