forked from redhat-developer/rhdh-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
76 lines (72 loc) · 2.62 KB
/
Copy pathcompose.yaml
File metadata and controls
76 lines (72 loc) · 2.62 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
services:
# Uncomment the following block to use a PostgreSQL database
# don't forget to also uncomment 'depends_on' 'db' section in the rhdh service
# and comment out or delete 'database' section in app-config.yaml or app-config.local.yaml
# db:
# container_name: db
# image: "registry.redhat.io/rhel8/postgresql-16:latest"
# volumes:
# - "/var/lib/pgsql/data"
# env_file:
# - path: "./default.env"
# required: true
# - path: "./.env"
# required: false
# environment:
# - POSTGRESQL_ADMIN_PASSWORD=${POSTGRES_PASSWORD}
# healthcheck:
# test: ["CMD", "pg_isready", "-U", "postgres"]
# interval: 5s
# timeout: 5s
# retries: 5
rhdh:
container_name: rhdh
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.9}
env_file:
- path: "./default.env"
required: true
- path: "./.env"
required: false
user: "1001"
entrypoint:
- "/opt/app-root/src/wait-for-plugins-and-start.sh"
ports: # dclint disable-line no-unbound-port-interfaces
- "7007:7007"
- "127.0.0.1:9229:9229"
environment:
NODE_OPTIONS: "--inspect=0.0.0.0:9229 --no-node-snapshot"
volumes:
- ./mkdocs.yaml:/opt/app-root/src/mkdocs.yaml:Z
- ./docs:/opt/app-root/src/docs:Z
- ./catalog-info.yaml:/opt/app-root/src/catalog-info.yaml:Z
- ./wait-for-plugins-and-start.sh:/opt/app-root/src/wait-for-plugins-and-start.sh:Z
- ./configs:/opt/app-root/src/configs:z
- dynamic-plugins-root:/opt/app-root/src/dynamic-plugins-root
- extensions-catalog:/extensions
depends_on:
install-dynamic-plugins:
condition: service_completed_successfully
# db:
# condition: service_healthy
install-dynamic-plugins:
container_name: rhdh-plugins-installer
image: ${RHDH_IMAGE:-quay.io/rhdh-community/rhdh:1.9}
# docker compose volumes are owned by root, so we need to run as root to write to them
# the main rhdh container will be able to read from this as files are world readable
user: "root"
entrypoint:
- ./prepare-and-install-dynamic-plugins.sh
env_file:
- path: "./default.env"
required: true
- path: "./.env"
required: false
volumes:
- ./prepare-and-install-dynamic-plugins.sh:/opt/app-root/src/prepare-and-install-dynamic-plugins.sh:Z
- ./local-plugins:/opt/app-root/src/local-plugins:Z
- ./configs:/opt/app-root/src/configs:z
- dynamic-plugins-root:/dynamic-plugins-root
- extensions-catalog:${CATALOG_ENTITIES_EXTRACT_DIR:-/extensions}
volumes:
dynamic-plugins-root:
extensions-catalog: