diff --git a/authentik/docker-compose.yml b/authentik/docker-compose.yml index a0e351b..cffeed8 100644 --- a/authentik/docker-compose.yml +++ b/authentik/docker-compose.yml @@ -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 diff --git a/create.sh b/create.sh new file mode 100755 index 0000000..b569dbe --- /dev/null +++ b/create.sh @@ -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 <"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" diff --git a/umami/docker-compose.yml b/umami/docker-compose.yml index 7cf6df5..83b4bba 100644 --- a/umami/docker-compose.yml +++ b/umami/docker-compose.yml @@ -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