Refactor docker-compose setup and update Authentik version to 2025.4.2
This commit is contained in:
parent
81b2fbc91c
commit
321acaf85d
8 changed files with 285 additions and 392 deletions
46
README.md
46
README.md
|
@ -202,37 +202,43 @@ TARGET_IPV6=$(dig +short "${TARGET_DOMAIN}" AAAA | grep -E '^(([0-9a-fA-F]{1,4}:
|
|||
### Fist run
|
||||
|
||||
```shell
|
||||
docker compose build --no-cache \
|
||||
./scripts/compose.sh build --no-cache \
|
||||
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
|
||||
--build-arg SRC_REV=$(git rev-parse --short HEAD) \
|
||||
&& docker compose up -d; docker compose logs -f
|
||||
&& ./scripts/compose.sh up -d; ./scripts/compose.sh logs -f
|
||||
```
|
||||
|
||||
## Upgrade
|
||||
|
||||
### Test
|
||||
|
||||
1. Check if the backups are up to date: `docker compose run --rm restore-cli /usr/local/bin/restic snapshots`
|
||||
2. Update `AUTHENTIK_TAG` to the desired tag in `env.test.template`.
|
||||
3. Commit & push changes to the Repo.
|
||||
4. Run `diff --color='auto' env.test.template .env` to display the diff between
|
||||
`env.test.template` and `.env`.
|
||||
5. Port the made changes to `.env`.
|
||||
6. `docker-compose-2.32.4 pull`
|
||||
7. `docker-compose-2.32.4 down`
|
||||
8. `docker-compose-2.32.4 up -d; docker-compose-2.32.4 logs -f`
|
||||
1. Check if the backups are up to date: `./scripts/compose.sh run --rm restore-cli /usr/local/bin/restic snapshots`
|
||||
2. Create a new branch `git checkout -b <version>`.
|
||||
3. Download the the docker compose for the version you want to update:
|
||||
`curl -fsSL -o docker-compose.yml https://goauthentik.io/version/<version>/docker-compose.yml`
|
||||
4. Update `AUTHENTIK_TAG` to the desired tag in `env.test.template`.
|
||||
5. Commit & push changes to the Repo.
|
||||
6. Run `diff --color='auto' env.test.template .env` to display the diff between
|
||||
`env.test.template` and `.env`.
|
||||
7. Port the made changes to `.env`.
|
||||
8. `./scripts/compose.sh pull`
|
||||
9. `./scripts/compose.sh down`
|
||||
10. `./scripts/compose.sh up -d; ./scripts/compose.sh logs -f`
|
||||
|
||||
### Prod
|
||||
|
||||
1. Check if the backups are up to date: `docker compose run --rm restore-cli /usr/local/bin/restic snapshots`
|
||||
2. Update `AUTHENTIK_TAG` to the desired tag in `env.prod.template`.
|
||||
3. Commit & push changes to the Repo.
|
||||
4. Run `diff --color='auto' env.prod.template .env` to display the diff between
|
||||
`env.prod.template` and `.env`.
|
||||
5. Port the made changes to `.env`.
|
||||
6. `docker compose pull`
|
||||
7. `docker compose down`
|
||||
8. `docker compose up -d; docker compose logs -f`
|
||||
1. Check if the backups are up to date: `./scripts/compose.sh run --rm restore-cli /usr/local/bin/restic snapshots`
|
||||
2. Create a new branch `git checkout -b <version>`.
|
||||
3. Download the the docker compose for the version you want to update:
|
||||
`curl -fsSL -o docker-compose.yml https://goauthentik.io/version/<version>/docker-compose.yml`
|
||||
4. Update `AUTHENTIK_TAG` to the desired tag in `env.prod.template`.
|
||||
5. Commit & push changes to the Repo.
|
||||
6. Run `diff --color='auto' env.prod.template .env` to display the diff between
|
||||
`env.prod.template` and `.env`.
|
||||
7. Port the made changes to `.env`.
|
||||
8. `./scripts/compose.sh pull`
|
||||
9. `./scripts/compose.sh down`
|
||||
10. `./scripts/compose.sh up -d; ./scripts/compose.sh logs -f`
|
||||
|
||||
## Disaster recovery / restore
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue