Show More
@@ -1,342 +1,342 b'' | |||||
1 | version: '3.9' |
|
1 | version: '3.9' | |
2 |
|
2 | |||
3 | x-logging: &custom-logging |
|
3 | x-logging: &custom-logging | |
4 | # docker plugin install grafana/loki-docker-driver:2.7.1 --alias loki --grant-all-permissions |
|
4 | # docker plugin install grafana/loki-docker-driver:2.7.1 --alias loki --grant-all-permissions | |
5 | # NOTE: loki logging driver ONLY works for host type networks... |
|
5 | # NOTE: loki logging driver ONLY works for host type networks... | |
6 | driver: loki |
|
6 | driver: loki | |
7 | options: |
|
7 | options: | |
8 | #loki-url: "http://${RC_LOKI_AUTH}loki:3100/loki/api/v1/push" |
|
8 | #loki-url: "http://${RC_LOKI_AUTH}loki:3100/loki/api/v1/push" | |
9 | loki-url: "http://${RC_LOKI_AUTH}127.0.0.1:3100/loki/api/v1/push" |
|
9 | loki-url: "http://${RC_LOKI_AUTH}127.0.0.1:3100/loki/api/v1/push" | |
10 | loki-retries: "5" |
|
10 | loki-retries: "5" | |
11 | loki-timeout: "1s" |
|
11 | loki-timeout: "1s" | |
12 | loki-max-backoff: "800ms" |
|
12 | loki-max-backoff: "800ms" | |
13 |
|
13 | |||
14 |
|
14 | |||
15 | services: |
|
15 | services: | |
16 |
|
16 | |||
17 | rhodecode: |
|
17 | rhodecode: | |
18 | networks: |
|
18 | networks: | |
19 | - rhodecode_network |
|
19 | - rhodecode_network | |
20 | extra_hosts: |
|
20 | extra_hosts: | |
21 | - "host.docker.internal:host-gateway" |
|
21 | - "host.docker.internal:host-gateway" | |
22 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
22 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
23 | stdin_open: true |
|
23 | stdin_open: true | |
24 | tty: true |
|
24 | tty: true | |
25 | restart: always |
|
25 | restart: always | |
26 | env_file: |
|
26 | env_file: | |
27 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
27 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
28 | command: [ |
|
28 | command: [ | |
29 | "/usr/local/bin/rhodecode_bin/bin/gunicorn", |
|
29 | "/usr/local/bin/rhodecode_bin/bin/gunicorn", | |
30 | "--name=gunicorn-rhodecode-1", |
|
30 | "--name=gunicorn-rhodecode-1", | |
31 | "--error-logfile=-", |
|
31 | "--error-logfile=-", | |
32 | "--paster=/etc/rhodecode/conf/rhodecode.ini", |
|
32 | "--paster=/etc/rhodecode/conf/rhodecode.ini", | |
33 | "--config=/etc/rhodecode/conf/gunicorn_conf_rc.py" |
|
33 | "--config=/etc/rhodecode/conf/gunicorn_conf_rc.py" | |
34 | ] |
|
34 | ] | |
35 | deploy: |
|
35 | deploy: | |
36 | # override this in .custom/docker-compose-apps.override.yaml to scale up |
|
36 | # override this in .custom/docker-compose-apps.override.yaml to scale up | |
37 | replicas: 1 |
|
37 | replicas: 1 | |
38 |
|
38 | |||
39 | # ports: |
|
39 | # ports: | |
40 | # - "127.0.0.1::10020" |
|
40 | # - "127.0.0.1::10020" | |
41 |
|
41 | |||
42 | build: |
|
42 | build: | |
43 | context: . |
|
43 | context: . | |
44 | dockerfile: service/rhodecode/rhodecode.dockerfile |
|
44 | dockerfile: service/rhodecode/rhodecode.dockerfile | |
45 | args: |
|
45 | args: | |
46 | TZ: ${TZ} |
|
46 | TZ: ${TZ} | |
47 | RHODECODE_VERSION: ${RC_VERSION:-4.28.0} |
|
47 | RHODECODE_VERSION: ${RC_VERSION:-4.28.0} | |
48 | RHODECODE_DB: postgresql://rhodecode:${DB_PASSWORD:?must-specify-db-password}@database/${DB_NAME:?must-specify-db-name} |
|
48 | RHODECODE_DB: postgresql://rhodecode:${DB_PASSWORD:?must-specify-db-password}@database/${DB_NAME:?must-specify-db-name} | |
49 | RHODECODE_USER_NAME: ${RHODECODE_USER_NAME} |
|
49 | RHODECODE_USER_NAME: ${RHODECODE_USER_NAME} | |
50 | RHODECODE_USER_PASS: ${RHODECODE_USER_PASS} |
|
50 | RHODECODE_USER_PASS: ${RHODECODE_USER_PASS} | |
51 | RHODECODE_USER_EMAIL: ${RHODECODE_USER_EMAIL} |
|
51 | RHODECODE_USER_EMAIL: ${RHODECODE_USER_EMAIL} | |
52 |
|
52 | |||
53 | environment: |
|
53 | environment: | |
54 | RC_APP_TYPE: rhodecode_http |
|
54 | RC_APP_TYPE: rhodecode_http | |
55 | RC_APP_PROC: 1 |
|
55 | RC_APP_PROC: 1 | |
56 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
56 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" | |
57 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
57 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" | |
58 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" |
|
58 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" | |
59 | GEVENT_RESOLVER: "ares" |
|
59 | GEVENT_RESOLVER: "ares" | |
60 |
|
60 | |||
61 | DB_UPGRADE: 1 # run the DB upgrade |
|
61 | DB_UPGRADE: 1 # run the DB upgrade | |
62 | SETUP_APP: 1 # run the application default settings setup, can be turned off after initial run |
|
62 | SETUP_APP: 1 # run the application default settings setup, can be turned off after initial run | |
63 | #FORCE_DB_INIT_FILE: 1 # force the database init, warning: destroys old DB |
|
63 | #FORCE_DB_INIT_FILE: 1 # force the database init, warning: destroys old DB | |
64 | #FORCE_RC_SETUP_APP: 1 # force running setup scripts for configuration/license application |
|
64 | #FORCE_RC_SETUP_APP: 1 # force running setup scripts for configuration/license application | |
65 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini |
|
65 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini | |
66 |
|
66 | |||
67 | # SVN Specific |
|
67 | # SVN Specific | |
68 | MOD_DAV_SVN_PORT: 8090 |
|
68 | MOD_DAV_SVN_PORT: 8090 | |
69 | APACHE_LOG_DIR: /var/log |
|
69 | APACHE_LOG_DIR: /var/log | |
70 | MOD_DAV_SVN_CONF_FILE: /etc/rhodecode/conf/svn/mod_dav_svn.conf |
|
70 | MOD_DAV_SVN_CONF_FILE: /etc/rhodecode/conf/svn/mod_dav_svn.conf | |
71 |
|
71 | |||
72 | healthcheck: |
|
72 | healthcheck: | |
73 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:10020/_admin/ops/ping" ] |
|
73 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:10020/_admin/ops/ping" ] | |
74 | timeout: 30s |
|
74 | timeout: 30s | |
75 | interval: 60s |
|
75 | interval: 60s | |
76 | retries: 10 |
|
76 | retries: 10 | |
77 |
|
77 | |||
78 | # depends_on: |
|
78 | # depends_on: | |
79 | # - database |
|
79 | # - database | |
80 | # - redis |
|
80 | # - redis | |
81 | # - channelstream |
|
81 | # - channelstream | |
82 |
|
82 | |||
83 | volumes: |
|
83 | volumes: | |
84 | - confvolume:/etc/rhodecode/conf |
|
84 | - confvolume:/etc/rhodecode/conf | |
85 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
85 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
86 | - rc_datavolume:/var/opt/rhodecode_data |
|
86 | - rc_datavolume:/var/opt/rhodecode_data | |
87 |
|
87 | |||
88 | tmpfs: |
|
88 | tmpfs: | |
89 |
- /data_ramdisk:size=${RC_DATA_RAMDISK_SIZE: |
|
89 | - /data_ramdisk:size=${RC_DATA_RAMDISK_SIZE:-256M} | |
90 |
|
90 | |||
91 | logging: |
|
91 | logging: | |
92 | *custom-logging |
|
92 | *custom-logging | |
93 |
|
93 | |||
94 | labels: |
|
94 | labels: | |
95 | - "autoheal=true" |
|
95 | - "autoheal=true" | |
96 | - "traefik.enable=true" |
|
96 | - "traefik.enable=true" | |
97 | - "traefik.http.routers.rhodecode.entrypoints=http" |
|
97 | - "traefik.http.routers.rhodecode.entrypoints=http" | |
98 | - "traefik.http.routers.rhodecode.priority=10" |
|
98 | - "traefik.http.routers.rhodecode.priority=10" | |
99 | - "traefik.http.routers.rhodecode.rule=Host(`${RC_HOSTNAME:?must-specify-rhodecode-hostname}`)" |
|
99 | - "traefik.http.routers.rhodecode.rule=Host(`${RC_HOSTNAME:?must-specify-rhodecode-hostname}`)" | |
100 | - "traefik.http.routers.rhodecode.service=rhodecode-web" |
|
100 | - "traefik.http.routers.rhodecode.service=rhodecode-web" | |
101 | - "traefik.http.services.rhodecode-web.loadbalancer.server.port=10020" |
|
101 | - "traefik.http.services.rhodecode-web.loadbalancer.server.port=10020" | |
102 | # HTTP + SSL example, should be put into .custom/docker-compose-apps.override.yaml |
|
102 | # HTTP + SSL example, should be put into .custom/docker-compose-apps.override.yaml | |
103 | #- "traefik.http.routers.rhodecode.entrypoints=http,https" |
|
103 | #- "traefik.http.routers.rhodecode.entrypoints=http,https" | |
104 |
|
104 | |||
105 | vcsserver: |
|
105 | vcsserver: | |
106 | networks: |
|
106 | networks: | |
107 | - rhodecode_network |
|
107 | - rhodecode_network | |
108 | extra_hosts: |
|
108 | extra_hosts: | |
109 | - "host.docker.internal:host-gateway" |
|
109 | - "host.docker.internal:host-gateway" | |
110 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
110 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
111 |
|
111 | |||
112 | stdin_open: true |
|
112 | stdin_open: true | |
113 | tty: true |
|
113 | tty: true | |
114 | restart: always |
|
114 | restart: always | |
115 | env_file: |
|
115 | env_file: | |
116 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
116 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
117 | command: [ |
|
117 | command: [ | |
118 | "/home/rhodecode/.rccontrol/vcsserver-1/profile/bin/gunicorn", |
|
118 | "/home/rhodecode/.rccontrol/vcsserver-1/profile/bin/gunicorn", | |
119 | "--name=gunicorn-vcsserver-1", |
|
119 | "--name=gunicorn-vcsserver-1", | |
120 | "--error-logfile=-", |
|
120 | "--error-logfile=-", | |
121 | "--paster=/etc/rhodecode/conf/vcsserver.ini", |
|
121 | "--paster=/etc/rhodecode/conf/vcsserver.ini", | |
122 | "--config=/etc/rhodecode/conf/gunicorn_conf_vcs.py" |
|
122 | "--config=/etc/rhodecode/conf/gunicorn_conf_vcs.py" | |
123 | ] |
|
123 | ] | |
124 | deploy: |
|
124 | deploy: | |
125 | # override this in .custom/docker-compose-apps.override.yaml to scale up |
|
125 | # override this in .custom/docker-compose-apps.override.yaml to scale up | |
126 | replicas: 1 |
|
126 | replicas: 1 | |
127 |
|
127 | |||
128 | # ports: |
|
128 | # ports: | |
129 | # - "127.0.0.1::10010" |
|
129 | # - "127.0.0.1::10010" | |
130 |
|
130 | |||
131 | healthcheck: |
|
131 | healthcheck: | |
132 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:10010/status" ] |
|
132 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:10010/status" ] | |
133 | timeout: 30s |
|
133 | timeout: 30s | |
134 | interval: 60s |
|
134 | interval: 60s | |
135 | retries: 10 |
|
135 | retries: 10 | |
136 |
|
136 | |||
137 | environment: |
|
137 | environment: | |
138 | RC_APP_TYPE: rhodecode_vcsserver |
|
138 | RC_APP_TYPE: rhodecode_vcsserver | |
139 | RC_APP_PROC: 1 |
|
139 | RC_APP_PROC: 1 | |
140 | MAIN_INI_PATH: /etc/rhodecode/conf/vcsserver.ini |
|
140 | MAIN_INI_PATH: /etc/rhodecode/conf/vcsserver.ini | |
141 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
141 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" | |
142 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
142 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" | |
143 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" |
|
143 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" | |
144 |
|
144 | |||
145 | # depends_on: |
|
145 | # depends_on: | |
146 | # - redis |
|
146 | # - redis | |
147 |
|
147 | |||
148 | volumes: |
|
148 | volumes: | |
149 | - confvolume:/etc/rhodecode/conf |
|
149 | - confvolume:/etc/rhodecode/conf | |
150 |
|
150 | |||
151 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
151 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
152 | - rc_datavolume:/var/opt/rhodecode_data |
|
152 | - rc_datavolume:/var/opt/rhodecode_data | |
153 |
|
153 | |||
154 | logging: |
|
154 | logging: | |
155 | *custom-logging |
|
155 | *custom-logging | |
156 |
|
156 | |||
157 | labels: |
|
157 | labels: | |
158 | - "autoheal=true" |
|
158 | - "autoheal=true" | |
159 |
|
159 | |||
160 | celery: |
|
160 | celery: | |
161 | networks: |
|
161 | networks: | |
162 | - rhodecode_network |
|
162 | - rhodecode_network | |
163 | extra_hosts: |
|
163 | extra_hosts: | |
164 | - "host.docker.internal:host-gateway" |
|
164 | - "host.docker.internal:host-gateway" | |
165 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
165 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
166 |
|
166 | |||
167 | stdin_open: true |
|
167 | stdin_open: true | |
168 | tty: true |
|
168 | tty: true | |
169 | restart: always |
|
169 | restart: always | |
170 | env_file: |
|
170 | env_file: | |
171 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
171 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
172 | command: [ |
|
172 | command: [ | |
173 | "/usr/local/bin/rhodecode_bin/bin/celery", |
|
173 | "/usr/local/bin/rhodecode_bin/bin/celery", | |
174 | "worker", |
|
174 | "worker", | |
175 | "--task-events", |
|
175 | "--task-events", | |
176 | "--autoscale=10,2", |
|
176 | "--autoscale=10,2", | |
177 | "--no-color", |
|
177 | "--no-color", | |
178 | "--app=rhodecode.lib.celerylib.loader", |
|
178 | "--app=rhodecode.lib.celerylib.loader", | |
179 | "--loglevel=DEBUG", |
|
179 | "--loglevel=DEBUG", | |
180 | "--ini=/etc/rhodecode/conf/rhodecode.ini" |
|
180 | "--ini=/etc/rhodecode/conf/rhodecode.ini" | |
181 | ] |
|
181 | ] | |
182 |
|
182 | |||
183 | environment: |
|
183 | environment: | |
184 | RC_APP_TYPE: rhodecode_celery |
|
184 | RC_APP_TYPE: rhodecode_celery | |
185 | RC_APP_PROC: 1 |
|
185 | RC_APP_PROC: 1 | |
186 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini |
|
186 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini | |
187 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
187 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" | |
188 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
188 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" | |
189 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" |
|
189 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" | |
190 |
|
190 | |||
191 | # depends_on: |
|
191 | # depends_on: | |
192 | # - database |
|
192 | # - database | |
193 | # - redis |
|
193 | # - redis | |
194 |
|
194 | |||
195 | volumes: |
|
195 | volumes: | |
196 | - confvolume:/etc/rhodecode/conf |
|
196 | - confvolume:/etc/rhodecode/conf | |
197 |
|
197 | |||
198 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
198 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
199 | - rc_datavolume:/var/opt/rhodecode_data |
|
199 | - rc_datavolume:/var/opt/rhodecode_data | |
200 |
|
200 | |||
201 | logging: |
|
201 | logging: | |
202 | *custom-logging |
|
202 | *custom-logging | |
203 |
|
203 | |||
204 |
|
204 | |||
205 | celery-beat: |
|
205 | celery-beat: | |
206 | # This service is not scalable |
|
206 | # This service is not scalable | |
207 | networks: |
|
207 | networks: | |
208 | - rhodecode_network |
|
208 | - rhodecode_network | |
209 | extra_hosts: |
|
209 | extra_hosts: | |
210 | - "host.docker.internal:host-gateway" |
|
210 | - "host.docker.internal:host-gateway" | |
211 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
211 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
212 |
|
212 | |||
213 | stdin_open: true |
|
213 | stdin_open: true | |
214 | tty: true |
|
214 | tty: true | |
215 | restart: always |
|
215 | restart: always | |
216 | env_file: |
|
216 | env_file: | |
217 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
217 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
218 | command: [ |
|
218 | command: [ | |
219 | "/usr/local/bin/rhodecode_bin/bin/celery", |
|
219 | "/usr/local/bin/rhodecode_bin/bin/celery", | |
220 | "beat", |
|
220 | "beat", | |
221 | "--no-color", |
|
221 | "--no-color", | |
222 | "--app=rhodecode.lib.celerylib.loader", |
|
222 | "--app=rhodecode.lib.celerylib.loader", | |
223 | "--scheduler=rhodecode.lib.celerylib.scheduler.RcScheduler", |
|
223 | "--scheduler=rhodecode.lib.celerylib.scheduler.RcScheduler", | |
224 | "--loglevel=DEBUG", |
|
224 | "--loglevel=DEBUG", | |
225 | "--ini=/etc/rhodecode/conf/rhodecode.ini" |
|
225 | "--ini=/etc/rhodecode/conf/rhodecode.ini" | |
226 | ] |
|
226 | ] | |
227 |
|
227 | |||
228 | environment: |
|
228 | environment: | |
229 | RC_APP_TYPE: rhodecode_beat |
|
229 | RC_APP_TYPE: rhodecode_beat | |
230 | RC_APP_PROC: 1 |
|
230 | RC_APP_PROC: 1 | |
231 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini |
|
231 | MAIN_INI_PATH: /etc/rhodecode/conf/rhodecode.ini | |
232 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
232 | SSL_CERT_FILE: "/etc/rhodecode/conf/ca-bundle.crt" | |
233 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" |
|
233 | REQUESTS_CA_BUNDLE: "/etc/rhodecode/conf/ca-bundle.crt" | |
234 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" |
|
234 | GIT_SSL_CAINFO: "/etc/rhodecode/conf/ca-bundle.crt" | |
235 |
|
235 | |||
236 | # depends_on: |
|
236 | # depends_on: | |
237 | # - database |
|
237 | # - database | |
238 | # - redis |
|
238 | # - redis | |
239 |
|
239 | |||
240 | volumes: |
|
240 | volumes: | |
241 | - confvolume:/etc/rhodecode/conf |
|
241 | - confvolume:/etc/rhodecode/conf | |
242 |
|
242 | |||
243 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
243 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
244 | - rc_datavolume:/var/opt/rhodecode_data |
|
244 | - rc_datavolume:/var/opt/rhodecode_data | |
245 |
|
245 | |||
246 | logging: |
|
246 | logging: | |
247 | *custom-logging |
|
247 | *custom-logging | |
248 |
|
248 | |||
249 |
|
249 | |||
250 | svn: |
|
250 | svn: | |
251 | networks: |
|
251 | networks: | |
252 | - rhodecode_network |
|
252 | - rhodecode_network | |
253 | extra_hosts: |
|
253 | extra_hosts: | |
254 | - "host.docker.internal:host-gateway" |
|
254 | - "host.docker.internal:host-gateway" | |
255 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
255 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
256 |
|
256 | |||
257 | # build: |
|
257 | # build: | |
258 | # context: . |
|
258 | # context: . | |
259 | # dockerfile: service/svn/rhodecode_svn.dockerfile |
|
259 | # dockerfile: service/svn/rhodecode_svn.dockerfile | |
260 | # args: |
|
260 | # args: | |
261 | # APACHE_VER: 1.3 |
|
261 | # APACHE_VER: 1.3 | |
262 |
|
262 | |||
263 | stdin_open: true |
|
263 | stdin_open: true | |
264 | tty: true |
|
264 | tty: true | |
265 | restart: always |
|
265 | restart: always | |
266 | env_file: |
|
266 | env_file: | |
267 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
267 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
268 |
|
268 | |||
269 | command: ["apachectl", "-D", "FOREGROUND"] |
|
269 | command: ["apachectl", "-D", "FOREGROUND"] | |
270 |
|
270 | |||
271 | environment: |
|
271 | environment: | |
272 | RC_APP_TYPE: rhodecode_svn |
|
272 | RC_APP_TYPE: rhodecode_svn | |
273 |
|
273 | |||
274 | # SVN Specific |
|
274 | # SVN Specific | |
275 | MOD_DAV_SVN_PORT: 8090 |
|
275 | MOD_DAV_SVN_PORT: 8090 | |
276 | APACHE_LOG_DIR: /var/log |
|
276 | APACHE_LOG_DIR: /var/log | |
277 | MOD_DAV_SVN_CONF_FILE: /etc/rhodecode/conf/svn/mod_dav_svn.conf |
|
277 | MOD_DAV_SVN_CONF_FILE: /etc/rhodecode/conf/svn/mod_dav_svn.conf | |
278 |
|
278 | |||
279 | # ports: |
|
279 | # ports: | |
280 | # - "127.0.0.1::8090" |
|
280 | # - "127.0.0.1::8090" | |
281 |
|
281 | |||
282 | healthcheck: |
|
282 | healthcheck: | |
283 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:8090/_server_status" ] |
|
283 | test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://127.0.0.1:8090/_server_status" ] | |
284 | timeout: 30s |
|
284 | timeout: 30s | |
285 | interval: 60s |
|
285 | interval: 60s | |
286 | retries: 10 |
|
286 | retries: 10 | |
287 |
|
287 | |||
288 | volumes: |
|
288 | volumes: | |
289 | - confvolume:/etc/rhodecode/conf |
|
289 | - confvolume:/etc/rhodecode/conf | |
290 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
290 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
291 | - rc_datavolume:/var/opt/rhodecode_data |
|
291 | - rc_datavolume:/var/opt/rhodecode_data | |
292 |
|
292 | |||
293 | logging: |
|
293 | logging: | |
294 | *custom-logging |
|
294 | *custom-logging | |
295 |
|
295 | |||
296 | labels: |
|
296 | labels: | |
297 | - "autoheal=true" |
|
297 | - "autoheal=true" | |
298 |
|
298 | |||
299 | sshd: |
|
299 | sshd: | |
300 | networks: |
|
300 | networks: | |
301 | - rhodecode_network |
|
301 | - rhodecode_network | |
302 | extra_hosts: |
|
302 | extra_hosts: | |
303 | - "host.docker.internal:host-gateway" |
|
303 | - "host.docker.internal:host-gateway" | |
304 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} |
|
304 | image: rhodecode/rhodecode-${RC_EDITION}:${RC_VERSION:-4.28.0} | |
305 |
|
305 | |||
306 | stdin_open: true |
|
306 | stdin_open: true | |
307 | tty: true |
|
307 | tty: true | |
308 | restart: always |
|
308 | restart: always | |
309 | env_file: |
|
309 | env_file: | |
310 | - ${RC_ENV_FILE:?must-specify-rc-env-file} |
|
310 | - ${RC_ENV_FILE:?must-specify-rc-env-file} | |
311 | command: ["/usr/sbin/sshd", "-f", "/etc/rhodecode/sshd_config", "-D", "-e"] |
|
311 | command: ["/usr/sbin/sshd", "-f", "/etc/rhodecode/sshd_config", "-D", "-e"] | |
312 |
|
312 | |||
313 | environment: |
|
313 | environment: | |
314 | RC_APP_TYPE: rhodecode_sshd |
|
314 | RC_APP_TYPE: rhodecode_sshd | |
315 | SSH_BOOTSTRAP: 1 |
|
315 | SSH_BOOTSTRAP: 1 | |
316 |
|
316 | |||
317 | healthcheck: |
|
317 | healthcheck: | |
318 | # we call ssh internally, to find permission denied, if SSH is DOWN it would be connection refused |
|
318 | # we call ssh internally, to find permission denied, if SSH is DOWN it would be connection refused | |
319 | test: [ "CMD-SHELL", "/usr/bin/ssh -p22 -o StrictHostKeyChecking=no -o PasswordAuthentication=No rhodecode@localhost true 2>&1 | grep -c 'Permission denied' > /dev/null" ] |
|
319 | test: [ "CMD-SHELL", "/usr/bin/ssh -p22 -o StrictHostKeyChecking=no -o PasswordAuthentication=No rhodecode@localhost true 2>&1 | grep -c 'Permission denied' > /dev/null" ] | |
320 | timeout: 30s |
|
320 | timeout: 30s | |
321 | interval: 60s |
|
321 | interval: 60s | |
322 | retries: 10 |
|
322 | retries: 10 | |
323 |
|
323 | |||
324 | # ports: |
|
324 | # ports: | |
325 | # # set from .env file |
|
325 | # # set from .env file | |
326 | # - "9022:22" |
|
326 | # - "9022:22" | |
327 |
|
327 | |||
328 | volumes: |
|
328 | volumes: | |
329 | - confvolume:/etc/rhodecode/conf |
|
329 | - confvolume:/etc/rhodecode/conf | |
330 | - rc_reposvolume:/var/opt/rhodecode_repo_store |
|
330 | - rc_reposvolume:/var/opt/rhodecode_repo_store | |
331 | - rc_datavolume:/var/opt/rhodecode_data |
|
331 | - rc_datavolume:/var/opt/rhodecode_data | |
332 |
|
332 | |||
333 | logging: |
|
333 | logging: | |
334 | *custom-logging |
|
334 | *custom-logging | |
335 |
|
335 | |||
336 | labels: |
|
336 | labels: | |
337 | - "autoheal=true" |
|
337 | - "autoheal=true" | |
338 | - "traefik.enable=true" |
|
338 | - "traefik.enable=true" | |
339 | - "traefik.http.routers.sshd.entrypoints=ssh" |
|
339 | - "traefik.http.routers.sshd.entrypoints=ssh" | |
340 | - "traefik.http.routers.sshd.rule=Host(`*`)" |
|
340 | - "traefik.http.routers.sshd.rule=Host(`*`)" | |
341 | - "traefik.http.routers.sshd.service=rhodecode-ssh" |
|
341 | - "traefik.http.routers.sshd.service=rhodecode-ssh" | |
342 | - "traefik.http.services.rhodecode-ssh.loadbalancer.server.port=22" |
|
342 | - "traefik.http.services.rhodecode-ssh.loadbalancer.server.port=22" |
General Comments 0
You need to be logged in to leave comments.
Login now