This repository was archived by the owner on Feb 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.5 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
gatekeeper:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- GATEKEEPER__Database__ConnectionString=Host=postgres;Port=5432;Database=gatekeeper;Username=gatekeeper;Password=${POSTGRES_PASSWORD:-gatekeeper_dev}
- GATEKEEPER__Redis__ConnectionString=redis:6379,password=${REDIS_PASSWORD:-redis_dev}
- GATEKEEPER__Security__KeyEncryptionKey=${KEK:-00000000000000000000000000000000}
- GATEKEEPER__Admin__BootstrapApiKey=${BOOTSTRAP_API_KEY:-dev-bootstrap-key}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: gatekeeper
POSTGRES_USER: gatekeeper
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-gatekeeper_dev}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gatekeeper"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD:-redis_dev}
ports:
- "6379:6379"
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-redis_dev}", "ping"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
redisdata: