Skip to content

Commit 02eb5f0

Browse files
committed
3.1.0 (squash)
1 parent c338fbe commit 02eb5f0

File tree

6 files changed

+71
-143
lines changed

6 files changed

+71
-143
lines changed

Dockerfile

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
# The Dockerfile is not a real Dockerfile.
2-
# Those vars are used broadly outside this Dockerfile
3-
# Github Action CI and release script (./utility.sh) is consuming these variables.
4-
ARG VERSION="3.0.0"
1+
###################################
2+
# REQUIRED for bashLaVa https://github.com/firepress-org/bashlava
3+
# REQUIRED for Github Action CI template https://github.com/firepress-org/ghostfire/tree/master/.github/workflows
4+
###################################
5+
56
ARG APP_NAME="docker-stack-this"
7+
ARG VERSION="3.1.0"
8+
ARG RELEASE="3.1.0"
9+
ARG GITHUB_USER="pascalandy"
10+
11+
###################################
12+
# REQUIRED BY OUR GITHUB ACTION CI
13+
###################################
14+
615
ARG GIT_PROJECT_NAME="docker-stack-this"
16+
ARG DOCKERHUB_USER="devmtl"
17+
ARG GITHUB_ORG="firepress-org"
18+
ARG GITHUB_REGISTRY="registry"
19+
20+
ARG GIT_REPO_DOCKERFILE="https://github.com/pascalandy/docker-stack-this"
21+
ARG GIT_REPO_SOURCE="https://github.com/pascalandy/docker-stack-this"

traefik_stack5/stack-proxy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
# and capture client IP's
5858
traefik:
5959
<<: *default-opts
60-
image: traefik:1.7.20
60+
image: traefik:1.7.24
6161
ports:
6262
- target: 80
6363
protocol: tcp

traefik_stack6/rundown.sh

-100
This file was deleted.

traefik_stack6/runup.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,9 @@ function goto_myscript() {
8787
message_is="stack-this"
8888
docker run --rm devmtl/figlet:1.0 ${message_is} && sleep 2 && echo && \
8989

90-
# If existing, remove stacks: "
91-
./rundown.sh && \
9290

93-
# If not existing, create networks"
94-
# create an overlay networks on docker swarm
91+
# If not existing, create an overlay networks on docker swarm
9592
arr=( "ntw_front" "ntw_proxy" )
96-
9793
for i in "${arr[@]}"; do
9894
if [ ! "$(docker network ls --filter name=${i} -q)" ]; then
9995
docker network create --driver overlay --attachable --opt encrypted "${i}"
@@ -107,7 +103,7 @@ function goto_myscript() {
107103
docker network ls | grep "ntw_" && echo && sleep 2 && \
108104
clear;
109105

110-
message_is="Launch stacks" && docker run --rm devmtl/figlet:1.0 ${message_is} && echo && \
106+
message_is="Deploy stacks" && docker run --rm devmtl/figlet:1.0 ${message_is} && echo && \
111107

112108
# Set ACME file
113109
#mkdir -pv ~/./configs && \
@@ -119,8 +115,11 @@ function goto_myscript() {
119115
#chmod 600 ~/./configs/traefik.yml && \
120116

121117
# deploy apps
122-
docker stack deploy stkproxy -c stk_traefik.yml && \
118+
docker stack deploy stksocat -c stk_socat.yml && \
119+
docker stack deploy stktraefik -c stk_traefik.yml && \
120+
#
123121
docker stack deploy stkwebapp -c stk_web.yml && \
122+
#
124123
docker stack deploy stkgui -c stk_portainer.yml && echo && \
125124

126125
# deploy swarmpit / constraint the db

traefik_stack6/stk_socat.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: '3.7'
2+
3+
x-default-opts:
4+
&default-opts
5+
logging:
6+
options:
7+
max-size: "10m"
8+
9+
services:
10+
11+
# this custom haproxy allows us to move traefik to worker nodes
12+
# while this container listens on managers and only allows
13+
# traefik to connect, read-only, to limited docker api calls
14+
# https://github.com/Tecnativa/docker-socket-proxy
15+
proxysocket:
16+
<<: *default-opts
17+
image: devmtl/proxysocket:1.9.10
18+
networks:
19+
- ntw_proxy
20+
volumes:
21+
- /var/run/docker.sock:/var/run/docker.sock:ro
22+
environment:
23+
NETWORKS: 1
24+
SERVICES: 1
25+
TASKS: 1
26+
# CONTAINERS: 1
27+
# SWARM: 1
28+
deploy:
29+
mode: global
30+
placement:
31+
constraints: [node.role == manager]
32+
restart_policy:
33+
condition: on-failure
34+
resources:
35+
limits:
36+
cpus: '0.20'
37+
memory: 8M
38+
reservations:
39+
cpus: '0.10'
40+
memory: 4M
41+
42+
networks:
43+
ntw_proxy:
44+
external: true

traefik_stack6/stk_traefik.yml

+1-31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version: '3.7'
22

3+
# logs config
34
x-default-opts:
45
&default-opts
56
logging:
@@ -59,37 +60,6 @@ services:
5960
#- "traefik.http.routers.api.rule=PathPrefix(`/traefik`)"
6061
#- "traefik.http.routers.api.service=api@internal"
6162

62-
# this custom haproxy allows us to move traefik to worker nodes
63-
# while this container listens on managers and only allows
64-
# traefik to connect, read-only, to limited docker api calls
65-
# https://github.com/Tecnativa/docker-socket-proxy
66-
proxysocket:
67-
<<: *default-opts
68-
image: devmtl/proxysocket:1.9.10
69-
networks:
70-
- ntw_proxy
71-
volumes:
72-
- /var/run/docker.sock:/var/run/docker.sock:ro
73-
environment:
74-
NETWORKS: 1
75-
SERVICES: 1
76-
TASKS: 1
77-
# CONTAINERS: 1
78-
# SWARM: 1
79-
deploy:
80-
mode: global
81-
placement:
82-
constraints: [node.role == manager]
83-
restart_policy:
84-
condition: on-failure
85-
resources:
86-
limits:
87-
cpus: '0.20'
88-
memory: 8M
89-
reservations:
90-
cpus: '0.10'
91-
memory: 4M
92-
9363
networks:
9464
ntw_front:
9565
external: true

0 commit comments

Comments
 (0)