-
Notifications
You must be signed in to change notification settings - Fork 18
/
compose.yaml
94 lines (90 loc) · 2.54 KB
/
compose.yaml
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
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 commentout or delete 'database' section in the app-config.local.yaml
# db:
# container_name: db
# image: "registry.redhat.io/rhel8/postgresql-16:latest"
# volumes:
# - "/var/lib/pgsql/data"
# env_file:
# - path: "./.env"
# required: true
# 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}
env_file:
- path: "./.env"
required: true
user: "1001"
entrypoint:
- "/opt/app-root/src/wait-for-plugins.sh"
ports:
- "7007:7007"
volumes:
- type: bind
source: "./wait-for-plugins.sh"
target: "/opt/app-root/src/wait-for-plugins.sh"
bind:
selinux: "Z"
- type: bind
source: "./configs"
target: "/opt/app-root/src/configs"
bind:
selinux: "Z"
- type: volume
source: dynamic-plugins-root
target: /opt/app-root/src/dynamic-plugins-root
volume:
nocopy: true
depends_on:
install-dynamic-plugins:
condition: service_completed_successfully
# db:
# condition: service_healthy
install-dynamic-plugins:
container_name: rhdh-plugins-installer
image: ${RHDH_IMAGE}
# 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:
- ./fixes.sh
env_file:
- path: "./.env"
required: true
volumes:
- type: bind
source: "./fixes.sh"
target: "/opt/app-root/src/fixes.sh"
bind:
selinux: "Z"
- type: bind
source : "./local-plugins"
target: "/opt/app-root/src/local-plugins"
bind:
selinux: "Z"
- type: bind
source: "./configs"
target: "/opt/app-root/src/configs"
bind:
selinux: "Z"
- type: bind
source: "./configs/dynamic-plugins.yaml"
target: "/opt/app-root/src/dynamic-plugins.yaml"
bind:
selinux: "Z"
- type: volume
source: dynamic-plugins-root
target: /dynamic-plugins-root
volume:
nocopy: true
volumes:
dynamic-plugins-root: