42 lines
1.4 KiB
Markdown
42 lines
1.4 KiB
Markdown
# `sso.base23.de` - Base23 SSO for all services
|
|
|
|
[Authentik](https://goauthentik.io/) based sso for us.
|
|
|
|
## Prerequisites - Server Setup
|
|
|
|
```shell
|
|
apt update \
|
|
&& apt upgrade -y \
|
|
&& for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt remove $pkg; done \
|
|
&& apt install ca-certificates curl \
|
|
&& install -m 0755 -d /etc/apt/keyrings \
|
|
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
|
|
&& chmod a+r /etc/apt/keyrings/docker.asc \
|
|
&& echo \
|
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
|
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
tee /etc/apt/sources.list.d/docker.list > /dev/null \
|
|
&& apt update \
|
|
&& apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
|
|
&& mkdir -p /var/lib/apps \
|
|
&& ln -s /var/lib/apps \
|
|
&& apt install -y git
|
|
```
|
|
|
|
## Installation
|
|
|
|
Clone & configure initially:
|
|
```shell
|
|
cd /root/apps \
|
|
&& git clone ssh://git@git.base23.de:222/base23/sso.base23.de.git \
|
|
&& cd sso.base23.de \
|
|
&& ./init.sh \
|
|
&& docker compose up -d; docker compose logs -f
|
|
```
|
|
|
|
## Upgrade
|
|
|
|
1. Update `AUTHENTIK_TAG` to the desired tag in `env.template`, as well as
|
|
in the deployed `.env` file.
|
|
2. `docker-compose down`
|
|
3. `docker compose up -d; docker compose logs -f`
|