-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.mongo.yml
More file actions
27 lines (27 loc) · 1.03 KB
/
docker-compose.mongo.yml
File metadata and controls
27 lines (27 loc) · 1.03 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
# Database overlay — MongoDB.
#
# Activates the mongo service from docker-compose.yml (--profile mongo) and
# injects database settings as environment variables so this overlay composes freely
# with any auth overlay (ldap, oidc, or the default static auth).
#
# Examples:
# # Static auth + MongoDB
# docker compose --profile mongo -f docker-compose.yml -f docker-compose.mongo.yml up -d
#
# # LDAP auth + MongoDB
# docker compose --profile mongo -f docker-compose.yml -f docker-compose.ldap.yml -f docker-compose.mongo.yml up -d
#
# # OIDC auth + MongoDB
# docker compose --profile mongo -f docker-compose.yml -f docker-compose.oidc.yml -f docker-compose.mongo.yml up -d
#
# Mongo Express (database UI) is available at http://localhost:8081.
services:
git-proxy-java:
environment:
GITPROXY_DATABASE_TYPE: mongo
GITPROXY_DATABASE_URL: mongodb://gitproxy:gitproxy@mongo:27017
GITPROXY_DATABASE_NAME: gitproxy
GITPROXY_SERVER_SESSION_STORE: mongo
depends_on:
mongo:
condition: service_healthy