File tree Expand file tree Collapse file tree 5 files changed +11
-27
lines changed
Expand file tree Collapse file tree 5 files changed +11
-27
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ DCAPE_NET_INTRA ?= $(DCAPE_TAG)_intra
1313DCAPE_DOMAIN ?= dev.lan
1414APPS_ALWAYS ?= traefik narra enfist drone portainer
1515TZ ?= $(shell cat /etc/timezone)
16- PG_IMAGE ?= postgres:15.2
16+ PG_IMAGE ?= postgres:13.5-alpine
1717PG_DB_PASS ?= $(shell < /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
1818PG_ENCODING ?= en_US.UTF-8
1919PG_PORT_LOCAL ?= 5433
@@ -210,19 +210,6 @@ dc: docker-compose.yml
210210 -p $$ DCAPE_TAG --env-file $(CFG ) \
211211 $(CMD )
212212
213- dc-new :
214- @docker compose \
215- -p $$ DCAPE_TAG --env-file $(CFG ) \
216- $(CMD )
217-
218- dc-old :
219- @docker run --rm -t -i \
220- -v /var/run/docker.sock:/var/run/docker.sock \
221- -v $$ PWD:$$ PWD -w $$ PWD \
222- $(DCAPE_TAG ) -compose \
223- -p $$ DCAPE_TAG --env-file $(CFG ) \
224- $(CMD )
225-
226213# ------------------------------------------------------------------------------
227214# # Database commands
228215# :
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ PGDATABASE_EXRA ?=
3434# User who runs DB_INIT_SQL and creates PGDATABASE_EXRA
3535PG_ADMIN ?= postgres
3636
37+ ifeq ($(USE_TLS ) ,false)
38+ HTTP_PROTO ?= http
39+ else
40+ HTTP_PROTO ?= https
41+ endif
3742
3843# ------------------------------------------------------------------------------
3944# .env template
@@ -85,14 +90,6 @@ export
8590-include $(CFG )
8691export
8792
88- # calculate values after includes
89-
90- ifeq ($(USE_TLS ) ,false)
91- HTTP_PROTO ?= http
92- else
93- HTTP_PROTO ?= https
94- endif
95-
9693.PHONY : all up down dc .docker-wait db-create db-drop psql init config .drone-default help
9794
9895all : help
Original file line number Diff line number Diff line change 11# Base docker-compose config for single application
22
3- version : ' 3.4 '
3+ version : ' 2 '
44
55services :
66 app :
@@ -10,7 +10,7 @@ services:
1010 - dcape.traefik.tag=${DCAPE_TAG}
1111 - traefik.http.routers.${APP_TAG}.rule=Host(`${APP_SITE:?Must be set}`)
1212 - traefik.http.routers.${APP_TAG}.tls=${USE_TLS}
13- - traefik.http.routers.${APP_TAG}.tls.certresolver=stepca
13+ - traefik.http.routers.${APP_TAG}.tls.certresolver=letsEncrypt
1414 volumes :
1515 - /etc/timezone:/etc/timezone:ro
1616 - /etc/localtime:/etc/localtime:ro
Original file line number Diff line number Diff line change 22# This file included by ../../Makefile
33SHELL = /bin/bash
44# Docker image version
5- PORTAINER_VER0 ?= 2.11 .1-alpine
5+ PORTAINER_VER0 ?= 2.15 .1-alpine
66# Config vars are described below in section `define CONFIG_...`
77PORTAINER_HOST ?= port.$(DCAPE_DOMAIN )
88PORTAINER_VER ?= $(PORTAINER_VER0 )
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ certificatesResolvers:
3636 # caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
3737 dnsChallenge :
3838 provider : pdns
39- # httpChallenge:
40- # entryPoint: web
39+ httpChallenge :
40+ entryPoint : web
4141
4242providers :
4343 docker :
You can’t perform that action at this time.
0 commit comments