make things work
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
7a41137278
commit
811d50f84b
|
@ -2,4 +2,6 @@ FROM ghcr.io/goauthentik/server:latest
|
|||
|
||||
USER root
|
||||
|
||||
RUN pip install --no-cache-dir -r /requirements-dev.txt
|
||||
HEALTHCHECK --interval=10s CMD exit 0
|
||||
|
||||
RUN pip install --no-cache-dir -r /app-root/requirements-dev.txt
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "authentik",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "app",
|
||||
"workspaceFolder": "/authentik",
|
||||
"workspaceFolder": "/app-root",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
|
||||
"ghcr.io/devcontainers/features/go:1": {},
|
||||
|
|
|
@ -6,8 +6,13 @@ services:
|
|||
context: ..
|
||||
dockerfile: .devcontainer/Dockerfile
|
||||
volumes:
|
||||
- ../:/authentik:cached
|
||||
- ../:/app-root:cached
|
||||
command: debug
|
||||
environment:
|
||||
AUTHENTIK_POSTGRESQL__USER: postgres
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD: postgres
|
||||
AUTHENTIK_BOOTSTRAP_PASSWORD: akadmin
|
||||
AUTHENTIK_BOOTSTRAP_TOKEN: akadmin
|
||||
db:
|
||||
image: docker.io/library/postgres:15
|
||||
restart: unless-stopped
|
||||
|
@ -16,7 +21,7 @@ services:
|
|||
network_mode: service:app
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_DB: postgres
|
||||
POSTGRES_DB: authentik
|
||||
POSTGRES_PASSWORD: postgres
|
||||
redis:
|
||||
image: docker.io/redis/redis-stack-server
|
||||
|
|
18
.vscode/tasks.json
vendored
18
.vscode/tasks.json
vendored
|
@ -3,26 +3,23 @@
|
|||
"tasks": [
|
||||
{
|
||||
"label": "authentik[core]: format & test",
|
||||
"command": "poetry",
|
||||
"args": [
|
||||
"run",
|
||||
"make"
|
||||
],
|
||||
"command": "make",
|
||||
"group": "build",
|
||||
},
|
||||
{
|
||||
"label": "authentik[core]: run",
|
||||
"command": "poetry",
|
||||
"command": "ak",
|
||||
"args": [
|
||||
"run",
|
||||
"make",
|
||||
"run",
|
||||
"server",
|
||||
],
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"panel": "dedicated",
|
||||
"group": "running"
|
||||
},
|
||||
"runOptions": {
|
||||
"runOn": "folderOpen"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "authentik[web]: format",
|
||||
|
@ -39,6 +36,9 @@
|
|||
"panel": "dedicated",
|
||||
"group": "running"
|
||||
},
|
||||
"runOptions": {
|
||||
"runOn": "folderOpen"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "authentik: install",
|
||||
|
|
|
@ -84,7 +84,7 @@ RUN apt-get update && \
|
|||
apt-get install -y --no-install-recommends libxmlsec1-openssl libmaxminddb0 && \
|
||||
# Required for bootstrap & healtcheck
|
||||
apt-get install -y --no-install-recommends runit && \
|
||||
pip install --no-cache-dir -r /requirements.txt && \
|
||||
pip install --no-cache-dir -r /app-root/requirements.txt && \
|
||||
apt-get remove --purge -y build-essential pkg-config libxmlsec1-dev && \
|
||||
apt-get autoremove --purge -y && \
|
||||
apt-get clean && \
|
||||
|
@ -111,7 +111,7 @@ USER 1000
|
|||
|
||||
ENV TMPDIR /dev/shm/
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PATH "/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lifecycle"
|
||||
ENV PATH "/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app-root/lifecycle"
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 CMD [ "ak", "healthcheck" ]
|
||||
|
||||
|
|
Reference in a new issue