Add script and update images
This commit is contained in:
parent
b0db33fb09
commit
b4848067fe
3 changed files with 42 additions and 3 deletions
|
@ -2,7 +2,7 @@ version: '3.2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: goauthentik.io/server:2022.10.1
|
image: goauthentik.io/server:2022.11
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: server
|
command: server
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -20,7 +20,7 @@ services:
|
||||||
- authentik
|
- authentik
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: goauthentik.io/server:2022.10.1
|
image: goauthentik.io/server:2022.11
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: worker
|
command: worker
|
||||||
user: root
|
user: root
|
||||||
|
|
39
create.sh
Executable file
39
create.sh
Executable 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"
|
|
@ -1,7 +1,7 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: docker.umami.is/umami-software/umami:postgresql-latest
|
image: docker.umami.dev/umami-software/umami:postgresql-latest
|
||||||
restart: always
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: true
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
|
Reference in a new issue