-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (51 loc) · 1.8 KB
/
Copy pathcompose.yaml
File metadata and controls
53 lines (51 loc) · 1.8 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
services:
db:
image: postgres:17-alpine
environment:
POSTGRES_USER: riptide
POSTGRES_PASSWORD: riptide
POSTGRES_DB: riptide
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U riptide -d riptide"]
interval: 2s
timeout: 2s
retries: 20
migrate:
build:
context: .
dockerfile: Containerfile
depends_on:
db:
condition: service_healthy
environment:
RIPTIDE_DB_URL: postgresql+asyncpg://riptide:riptide@db:5432/riptide
RIPTIDE_CONFIG_PATH: /etc/riptide-collector/riptide.json
RIPTIDE_TEAM_KEYS_PATH: /etc/riptide-collector/team-keys.json
volumes:
- ./openshift/collector/riptide.json:/etc/riptide-collector/riptide.json:ro
- ./openshift/collector/team-keys.json:/etc/riptide-collector/team-keys.json:ro
command: ["alembic", "upgrade", "head"]
app:
build:
context: .
dockerfile: Containerfile
depends_on:
migrate:
condition: service_completed_successfully
environment:
RIPTIDE_DB_URL: postgresql+asyncpg://riptide:riptide@db:5432/riptide
RIPTIDE_CONFIG_PATH: /etc/riptide-collector/riptide.json
RIPTIDE_TEAM_KEYS_PATH: /etc/riptide-collector/team-keys.json
RIPTIDE_LOG_LEVEL: INFO
volumes:
- ./openshift/collector/riptide.json:/etc/riptide-collector/riptide.json:ro
# Dev raw bearers (use as `Authorization: Bearer <raw>` against the
# running app): checkout → "dev-checkout", platform → "dev-platform".
# These match the sha256 hashes committed in
# openshift/collector/team-keys.json (sample for local dev; production
# mounts a different file from a k8s Secret).
- ./openshift/collector/team-keys.json:/etc/riptide-collector/team-keys.json:ro
ports:
- "8000:8000"