scripts: postgres, redis: only listen on localhost (#7849)

Co-authored-by: Jens L <jens@goauthentik.io>
This commit is contained in:
Marc 'risson' Schmitt 2023-12-11 12:08:48 +01:00 committed by GitHub
parent 6b272f4f00
commit 1fccbaa693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/usr/bin/env -S bash -e
MODE_FILE="${TMPDIR}/authentik-mode" MODE_FILE="${TMPDIR}/authentik-mode"
function log { function log {

View File

@ -1,22 +1,22 @@
version: '3.7' version: "3.7"
services: services:
postgresql: postgresql:
container_name: postgres container_name: postgres
image: library/postgres:12 image: docker.io/library/postgres:12
volumes: volumes:
- db-data:/var/lib/postgresql/data - db-data:/var/lib/postgresql/data
environment: environment:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: authentik POSTGRES_DB: authentik
ports: ports:
- 5432:5432 - 127.0.0.1:5432:5432
restart: always restart: always
redis: redis:
container_name: redis container_name: redis
image: library/redis image: docker.io/library/redis
ports: ports:
- 6379:6379 - 127.0.0.1:6379:6379
restart: always restart: always
volumes: volumes: