-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
28 lines (28 loc) · 1.13 KB
/
docker-compose.postgres.yml
File metadata and controls
28 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Database overlay — PostgreSQL.
#
# Activates the postgres service from docker-compose.yml (--profile postgres) and
# injects database settings as environment variables. Composes freely with any auth
# overlay (ldap, oidc, or the default static auth) — just add both -f flags.
#
# Examples:
# # Static auth + Postgres
# docker compose --profile postgres -f docker-compose.yml -f docker-compose.postgres.yml up -d
#
# # LDAP auth + Postgres
# docker compose --profile postgres -f docker-compose.yml -f docker-compose.ldap.yml -f docker-compose.postgres.yml up -d
#
# # OIDC auth + Postgres
# docker compose --profile postgres -f docker-compose.yml -f docker-compose.oidc.yml -f docker-compose.postgres.yml up -d
#
# Adminer (database UI) is available at http://localhost:8082.
services:
git-proxy-java:
environment:
GITPROXY_DATABASE_TYPE: postgres
GITPROXY_DATABASE_URL: "jdbc:postgresql://postgres:5432/gitproxy?sslmode=disable"
GITPROXY_DATABASE_USERNAME: gitproxy
GITPROXY_DATABASE_PASSWORD: gitproxy
GITPROXY_SERVER_SESSION_STORE: jdbc
depends_on:
postgres:
condition: service_healthy