##// END OF EJS Templates
rccontrol: fixed env flags propagation to services
super-admin -
Show More
@@ -23,6 +23,8 b' services:'
23 stdin_open: true
23 stdin_open: true
24 tty: true
24 tty: true
25 restart: always
25 restart: always
26 env_file:
27 - ${RC_ENV_FILE:?must-specify-rc-env-file}
26 command: [
28 command: [
27 "/usr/local/bin/rhodecode_bin/bin/gunicorn",
29 "/usr/local/bin/rhodecode_bin/bin/gunicorn",
28 "--name=gunicorn-rhodecode-1",
30 "--name=gunicorn-rhodecode-1",
@@ -106,6 +108,8 b' services:'
106 stdin_open: true
108 stdin_open: true
107 tty: true
109 tty: true
108 restart: always
110 restart: always
111 env_file:
112 - ${RC_ENV_FILE:?must-specify-rc-env-file}
109 command: [
113 command: [
110 "/home/rhodecode/.rccontrol/vcsserver-1/profile/bin/gunicorn",
114 "/home/rhodecode/.rccontrol/vcsserver-1/profile/bin/gunicorn",
111 "--name=gunicorn-vcsserver-1",
115 "--name=gunicorn-vcsserver-1",
@@ -156,6 +160,8 b' services:'
156 stdin_open: true
160 stdin_open: true
157 tty: true
161 tty: true
158 restart: always
162 restart: always
163 env_file:
164 - ${RC_ENV_FILE:?must-specify-rc-env-file}
159 command: [
165 command: [
160 "/usr/local/bin/rhodecode_bin/bin/celery",
166 "/usr/local/bin/rhodecode_bin/bin/celery",
161 "worker",
167 "worker",
@@ -202,6 +208,8 b' services:'
202 stdin_open: true
208 stdin_open: true
203 tty: true
209 tty: true
204 restart: always
210 restart: always
211 env_file:
212 - ${RC_ENV_FILE:?must-specify-rc-env-file}
205 command: [
213 command: [
206 "/usr/local/bin/rhodecode_bin/bin/celery",
214 "/usr/local/bin/rhodecode_bin/bin/celery",
207 "beat",
215 "beat",
@@ -252,6 +260,8 b' services:'
252 stdin_open: true
260 stdin_open: true
253 tty: true
261 tty: true
254 restart: always
262 restart: always
263 env_file:
264 - ${RC_ENV_FILE:?must-specify-rc-env-file}
255 command: ["apachectl", "-D", "FOREGROUND"]
265 command: ["apachectl", "-D", "FOREGROUND"]
256
266
257 environment:
267 environment:
@@ -289,6 +299,8 b' services:'
289 stdin_open: true
299 stdin_open: true
290 tty: true
300 tty: true
291 restart: always
301 restart: always
302 env_file:
303 - ${RC_ENV_FILE:?must-specify-rc-env-file}
292 command: ["/usr/sbin/sshd", "-f", "/etc/rhodecode/sshd_config", "-D", "-e"]
304 command: ["/usr/sbin/sshd", "-f", "/etc/rhodecode/sshd_config", "-D", "-e"]
293
305
294 environment:
306 environment:
@@ -42,7 +42,8 b' services:'
42
42
43 # ports:
43 # ports:
44 # - "127.0.0.1:9800:9800"
44 # - "127.0.0.1:9800:9800"
45
45 env_file:
46 - ${RC_ENV_FILE:?must-specify-rc-env-file}
46 command: ["channelstream"]
47 command: ["channelstream"]
47
48
48 healthcheck:
49 healthcheck:
@@ -75,6 +76,8 b' services:'
75
76
76 environment:
77 environment:
77 NGINX_ENTRYPOINT_QUIET_LOGS: 1
78 NGINX_ENTRYPOINT_QUIET_LOGS: 1
79 env_file:
80 - ${RC_ENV_FILE:?must-specify-rc-env-file}
78
81
79 healthcheck:
82 healthcheck:
80 # change port 80 to 443 when only using SSL
83 # change port 80 to 443 when only using SSL
@@ -113,6 +116,8 b' services:'
113 - bootstrap.memory_lock=true
116 - bootstrap.memory_lock=true
114 - discovery.type=single-node
117 - discovery.type=single-node
115 - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
118 - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
119 env_file:
120 - ${RC_ENV_FILE:?must-specify-rc-env-file}
116 healthcheck:
121 healthcheck:
117 # change port 80 to 443 when only using SSL
122 # change port 80 to 443 when only using SSL
118 test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "elasticsearch:9200/_cat/health" ]
123 test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "elasticsearch:9200/_cat/health" ]
@@ -140,7 +145,8 b' services:'
140 image: library/redis:7.0.5
145 image: library/redis:7.0.5
141
146
142 restart: always
147 restart: always
143
148 env_file:
149 - ${RC_ENV_FILE:?must-specify-rc-env-file}
144 command:
150 command:
145 - "redis-server"
151 - "redis-server"
146 - "/etc/redis/redis.conf"
152 - "/etc/redis/redis.conf"
@@ -177,6 +183,8 b' services:'
177 POSTGRES_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
183 POSTGRES_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
178 POSTGRES_HOST_AUTH_METHOD: md5
184 POSTGRES_HOST_AUTH_METHOD: md5
179 POSTGRES_INITDB_ARGS: "--auth-host=md5 --auth-local=md5"
185 POSTGRES_INITDB_ARGS: "--auth-host=md5 --auth-local=md5"
186 env_file:
187 - ${RC_ENV_FILE:?must-specify-rc-env-file}
180
188
181 restart: always
189 restart: always
182 command:
190 command:
@@ -219,6 +227,8 b' services:'
219 MYSQL_USER: ${DB_USER:?must-specify-db-user}
227 MYSQL_USER: ${DB_USER:?must-specify-db-user}
220 MYSQL_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
228 MYSQL_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
221 MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
229 MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:?must-specify-db-password}
230 env_file:
231 - ${RC_ENV_FILE:?must-specify-rc-env-file}
222
232
223 restart: always
233 restart: always
224
234
@@ -1824,7 +1824,7 b' rccontrol_stack_router_command() {'
1824 fi
1824 fi
1825
1825
1826 CMD_ROUTER="\
1826 CMD_ROUTER="\
1827 docker compose \
1827 RC_ENV_FILE=$ENV_FILE docker compose \
1828 --env-file $ENV_FILE \
1828 --env-file $ENV_FILE \
1829 $ENV_EXPAND \
1829 $ENV_EXPAND \
1830 -p rc_cluster_router \
1830 -p rc_cluster_router \
@@ -1857,7 +1857,7 b' rccontrol_stack_metrics_command() {'
1857 fi
1857 fi
1858
1858
1859 CMD_METRICS="\
1859 CMD_METRICS="\
1860 docker compose \
1860 RC_ENV_FILE=$ENV_FILE docker compose \
1861 --env-file $ENV_FILE \
1861 --env-file $ENV_FILE \
1862 $ENV_EXPAND \
1862 $ENV_EXPAND \
1863 -p rc_cluster_metrics \
1863 -p rc_cluster_metrics \
@@ -1891,7 +1891,7 b' rccontrol_stack_services_command() {'
1891 RC_STACK_PROFILES="--profile postgres --profile redis --profile elasticsearch --profile channelstream"
1891 RC_STACK_PROFILES="--profile postgres --profile redis --profile elasticsearch --profile channelstream"
1892
1892
1893 CMD_SERVICES="\
1893 CMD_SERVICES="\
1894 docker compose \
1894 RC_ENV_FILE=$ENV_FILE docker compose \
1895 --env-file $ENV_FILE \
1895 --env-file $ENV_FILE \
1896 $ENV_EXPAND \
1896 $ENV_EXPAND \
1897 $RC_STACK_PROFILES \
1897 $RC_STACK_PROFILES \
@@ -1925,7 +1925,7 b' rccontrol_stack_rhodecode_command() {'
1925 fi
1925 fi
1926
1926
1927 CMD_RHODECODE="\
1927 CMD_RHODECODE="\
1928 docker compose \
1928 RC_ENV_FILE=$ENV_FILE docker compose \
1929 --env-file $ENV_FILE \
1929 --env-file $ENV_FILE \
1930 $ENV_EXPAND \
1930 $ENV_EXPAND \
1931 -p rc_cluster_apps \
1931 -p rc_cluster_apps \
@@ -1933,7 +1933,7 b' rccontrol_stack_rhodecode_command() {'
1933 -f docker-compose-apps.yaml $RC_STACK_RHODECODE_EXT_LCL"
1933 -f docker-compose-apps.yaml $RC_STACK_RHODECODE_EXT_LCL"
1934
1934
1935 CMD_RHODECODE_SOURCE="\
1935 CMD_RHODECODE_SOURCE="\
1936 docker compose \
1936 RC_ENV_FILE=$ENV_FILE docker compose \
1937 --env-file $ENV_FILE \
1937 --env-file $ENV_FILE \
1938 $ENV_EXPAND \
1938 $ENV_EXPAND \
1939 -p rc_cluster_apps \
1939 -p rc_cluster_apps \
General Comments 0
You need to be logged in to leave comments. Login now