-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
97 lines (97 loc) · 2.75 KB
/
docker-compose.yaml
File metadata and controls
97 lines (97 loc) · 2.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# CBOMkit
# Copyright (C) 2026 PQCA
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
services:
backend:
image: ghcr.io/cbomkit/cbomkit:${CBOMKIT_VERSION}
depends_on:
- db
environment:
CBOMKIT_DB_TYPE: postgresql
CBOMKIT_DB_JDBC_URL: jdbc:postgresql://db:5432/postgres
CBOMKIT_PORT: 8081
CBOMKIT_DB_USERNAME: ${POSTGRESQL_AUTH_USERNAME}
CBOMKIT_DB_PASSWORD: ${POSTGRESQL_AUTH_PASSWORD}
CBOMKIT_FRONTEND_URL_CORS: "http://localhost:8001"
CBOMKIT_OPA_API_BASE: "http://opa:8181"
ports:
- "8081:8081"
volumes:
- cbomkit-volume:/home/user/.cbomkit
restart: always
deploy:
resources:
reservations:
memory: 16g
profiles:
- prod
- ext-compliance
- dev-frontend
frontend:
image: ghcr.io/cbomkit/cbomkit-frontend:${CBOMKIT_VERSION}
environment:
VUE_APP_HTTP_API_BASE: "http://localhost:8081"
VUE_APP_WS_API_BASE: "ws://localhost:8081"
VUE_APP_TITLE: "CBOMkit"
VUE_APP_VIEWER_ONLY: ${CBOMKIT_VIEWER}
ports:
- "8001:8000"
restart: always
profiles:
- prod
- ext-compliance
- dev-backend
- viewer
db:
image: docker.io/library/postgres:16-alpine
user: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: ${POSTGRESQL_AUTH_USERNAME}
POSTGRES_PASSWORD: ${POSTGRESQL_AUTH_PASSWORD}
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready -U ${POSTGRESQL_AUTH_USERNAME} -d postgres" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- "pg-volume:/var/lib/postgresql/data/"
restart: always
profiles:
- prod
- ext-compliance
- dev
- dev-backend
- dev-frontend
opa:
image: docker.io/openpolicyagent/opa:1.15.1
command:
- "run"
- "--addr=0.0.0.0:8181"
- "--server"
- "/policies"
ports:
- "8181:8181"
volumes:
- "${PWD}/opa:/policies"
profiles:
- ext-compliance
volumes:
cbomkit-volume:
pg-volume: