Add script and update images

This commit is contained in:
Tobias Reisinger 2022-12-05 14:21:35 +01:00
parent b0db33fb09
commit b4848067fe
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 42 additions and 3 deletions

View file

@ -2,7 +2,7 @@ version: '3.2'
services:
server:
image: goauthentik.io/server:2022.10.1
image: goauthentik.io/server:2022.11
restart: unless-stopped
command: server
volumes:
@ -20,7 +20,7 @@ services:
- authentik
worker:
image: goauthentik.io/server:2022.10.1
image: goauthentik.io/server:2022.11
restart: unless-stopped
command: worker
user: root

39
create.sh Executable file
View file

@ -0,0 +1,39 @@
#!/usr/bin/env sh
printf "Project name: "
read -r PROJECT
mkdir -p "$PROJECT"
cd "$PROJECT" || exit
printf "Image name: "
read -r IMAGE
printf "App name (network alias): "
read -r NAME
printf "Enable watchtower [true/false]: "
read -r WATCHTOWER_ENABLE
cat <<EOF >"docker-compose.yml"
version: '3'
services:
app:
image: ${IMAGE}
restart: always
labels:
com.centurylinklabs.watchtower.enable: ${WATCHTOWER_ENABLE}
env_file:
- .env
- .secret.env
networks:
apps:
aliases:
- ${NAME}
networks:
apps:
external: true
EOF
vim -O2 "docker-compose.yml" ".env"

View file

@ -1,7 +1,7 @@
version: '3'
services:
app:
image: docker.umami.is/umami-software/umami:postgresql-latest
image: docker.umami.dev/umami-software/umami:postgresql-latest
restart: always
labels:
com.centurylinklabs.watchtower.enable: true