summaryrefslogtreecommitdiff
path: root/stacks/edge
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/edge')
-rw-r--r--stacks/edge/.gitignore5
-rw-r--r--stacks/edge/Caddyfile.template53
-rw-r--r--stacks/edge/compose.yml16
-rw-r--r--stacks/edge/env.template16
-rw-r--r--stacks/edge/run.env.template34
5 files changed, 6 insertions, 118 deletions
diff --git a/stacks/edge/.gitignore b/stacks/edge/.gitignore
deleted file mode 100644
index 14be0dc..0000000
--- a/stacks/edge/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-# Ignore .env files
-*.env
-srv/
-Caddyfile
-compose.test.yml
diff --git a/stacks/edge/Caddyfile.template b/stacks/edge/Caddyfile.template
deleted file mode 100644
index 03dadf8..0000000
--- a/stacks/edge/Caddyfile.template
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-#
-# Reverse Proxy Configuration
-
-{$DOMAIN}:80 {
- redir https://{$DOMAIN}{uri} 302
-}
-
-{$DOMAIN} {
-
- root * {$DOCUMENT_ROOT}
- encode
- try_files {path} index.html
- file_server
-}
-
-{$PKM_SUB}.{$DOMAIN} {
- reverse_proxy {$PKM_HOST}:{$PKM_PORT}
-}
-
-{$SCM_SUB}.{$DOMAIN} {
- reverse_proxy {$SCM_HOST}:{$SCM_PORT}
-}
-
-{$PIM_SUB}.{$DOMAIN} {
-
- reverse_proxy {$PIM_HOST}:{$PIM_PORT}
-}
-
-{$TSS_SUB}.{$DOMAIN} {
-
- reverse_proxy {$TSS_HOST}:{$TSS_PORT}
-}
-
-{$IAM_SUB}.{$DOMAIN} {
-
- reverse_proxy {$IAM_HOST}:{$IAM_PORT}
-}
-
-{$IRM_SUB}.{$DOMAIN} {
-
- reverse_proxy {$IRM_HOST}:{$IRM_PORT}
-}
-
-{$NEWS_SUB}.{$DOMAIN} {
-
- reverse_proxy {$NEWS_HOST}:{$NEWS_PORT}
-}
-
-{$DBA_SUB}.{$DOMAIN} {
-
- reverse_proxy {$DBA_HOST}:{$DBA_PORT}
-}
diff --git a/stacks/edge/compose.yml b/stacks/edge/compose.yml
index d8c86fa..d18d15f 100644
--- a/stacks/edge/compose.yml
+++ b/stacks/edge/compose.yml
@@ -1,20 +1,16 @@
-name: ${STACK}
-
networks:
- net:
+ edge_net:
name: ${EDGE_NET}
external: true
services:
- edge-test:
- container_name: ${EDGE_CONTAINER}
+ edge:
image: caddy:latest
restart: unless-stopped
env_file:
- - .run.env
- - .env
+ - ${SECRETS}/env/edge.env
networks:
- - net
+ - edge_net
cap_add:
- NET_ADMIN
ports:
@@ -22,5 +18,5 @@ services:
- 443:443
- 443:443/udp
volumes:
- - ${CADDYFILE}:/etc/caddy/Caddyfile
- - ${WEBROOT}/:/srv
+ - ${ROOT}/www:/srv/www
+ - ${CONFIG}/edge/Caddyfile.test:/etc/caddy/Caddyfile
diff --git a/stacks/edge/env.template b/stacks/edge/env.template
deleted file mode 100644
index b43dec1..0000000
--- a/stacks/edge/env.template
+++ /dev/null
@@ -1,16 +0,0 @@
-#
-#
-# Stack Compose Variables
-
-# Namespace
-STACK=
-
-# Containers
-EDGE_CONTAINER=
-
-# Networks
-EDGE_NET=
-
-# Volumes
-CADDYFILE=
-WEBROOT=
diff --git a/stacks/edge/run.env.template b/stacks/edge/run.env.template
deleted file mode 100644
index aa456bf..0000000
--- a/stacks/edge/run.env.template
+++ /dev/null
@@ -1,34 +0,0 @@
-DOMAIN=
-DOCUMENT_ROOT=
-
-PKM_HOST=
-PKM_SUB=
-PKM_PORT=
-
-SCM_HOST=
-SCM_SUB=
-SCM_PORT=
-
-PIM_HOST=
-PIM_SUB=
-PIM_PORT=
-
-TSS_HOST=
-TSS_SUB=
-TSS_PORT=
-
-IAM_HOST=
-IAM_SUB=
-IAM_PORT=
-
-IRM_HOST=
-IRM_SUB=
-IRM_PORT=
-
-NEWS_HOST=
-NEWS_SUB=
-NEWS_PORT=
-
-DBA_HOST=
-DBA_SUB=
-DBA_PORT=