-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (37 loc) · 1.33 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## powerdns Makefile.
## Used with dcape at ../../
#:
SHELL = /bin/bash
CFG ?= .env
# Docker image version tested for actual dcape release
PDNS_VER0 ?= v4.8.0
# powerdns docker image
PDNS_IMAGE0 ?= ghcr.io/dopos/powerdns-alpine
#- ******************************************************************************
#- Powerdns: general config
#- Powerdns API key for DNS-01 ACME challenges
PDNS_API_KEY ?= $(DCAPE_PDNS_API_KEY)
# Next attempt: generate
PDNS_API_KEY ?= $(shell openssl rand -hex 16; echo)
#- [ip:]port powerdns listen on (tcp & udp)
PDNS_LISTEN ?= 54
#- Query log yes/no
PDNS_LOG_DNS_QUERIES ?= no
#- Query log works with level=5
PDNS_LOGLEVEL ?= 4
# ------------------------------------------------------------------------------
# Makefile internal use
# Bootstrap new database
DB_INIT_SQL ?= schema.pgsql.sql
# ------------------------------------------------------------------------------
-include $(CFG)
export
# Find and include DCAPE_ROOT/Makefile
DCAPE_COMPOSE ?= dcape-compose
DCAPE_ROOT ?= $(shell docker inspect -f "{{.Config.Labels.dcape_root}}" $(DCAPE_COMPOSE))
ifeq ($(DCAPE_STACK),yes)
include Makefile.dcape
else
include Makefile.app
endif
# ------------------------------------------------------------------------------