##// END OF EJS Templates
fix(ssl): show properly how to enable mounts for custom traefik ssl
super-admin -
Show More
@@ -30,8 +30,8 b' services:'
30 volumes:
30 volumes:
31 # So that Traefik can listen to the Docker events
31 # So that Traefik can listen to the Docker events
32 - /var/run/docker.sock:/var/run/docker.sock
32 - /var/run/docker.sock:/var/run/docker.sock
33 - ./config/traefik:/etc/traefik
33 - $PWD/config/traefik:/etc/traefik
34 - ./config/traefik/dynamic:/etc/traefik_dynamic
34 - $PWD/config/traefik/dynamic:/etc/traefik_dynamic
35 deploy:
35 deploy:
36 placement:
36 placement:
37 constraints:
37 constraints:
@@ -98,8 +98,8 b' services:'
98 # - channelstream
98 # - channelstream
99
99
100 volumes:
100 volumes:
101 - ./config/nginx/nginx_statics.conf:/etc/nginx/nginx.conf:ro
101 - $PWD/config/nginx/nginx_statics.conf:/etc/nginx/nginx.conf:ro
102 - ./.custom/static_files:/var/opt/rhodecode_static_data
102 - $PWD/.custom/static_files:/var/opt/rhodecode_static_data
103 - rc_datavolume:/var/opt/rhodecode_data
103 - rc_datavolume:/var/opt/rhodecode_data
104
104
105 logging:
105 logging:
@@ -130,8 +130,8 b' services:'
130 - ${RC_ENV_FILE:?must-specify-rc-env-file}
130 - ${RC_ENV_FILE:?must-specify-rc-env-file}
131
131
132 volumes:
132 volumes:
133 - ./config/nginx/nginx_errors.conf:/etc/nginx/nginx.conf:ro
133 - $PWD/config/nginx/nginx_errors.conf:/etc/nginx/nginx.conf:ro
134 - ./config/nginx/error_pages:/etc/nginx/error_pages
134 - $PWD/config/nginx/error_pages:/etc/nginx/error_pages
135
135
136 - rc_datavolume:/var/opt/rhodecode_data
136 - rc_datavolume:/var/opt/rhodecode_data
137
137
@@ -215,8 +215,7 b' services:'
215 interval: 60s
215 interval: 60s
216
216
217 volumes:
217 volumes:
218 - ./config/redis/redis.conf:/etc/redis/redis.conf:ro
218 - $PWD/config/redis/redis.conf:/etc/redis/redis.conf:ro
219
220 - redis_data:/data
219 - redis_data:/data
221
220
222 profiles:
221 profiles:
@@ -290,7 +289,7 b' services:'
290 # - "127.0.0.1::3306"
289 # - "127.0.0.1::3306"
291
290
292 volumes:
291 volumes:
293 - ./config/database/mysql_customized.conf:/etc/mysql/conf.d/config-file.cnf:ro
292 - $PWD/config/database/mysql_customized.conf:/etc/mysql/conf.d/config-file.cnf:ro
294 # save the mysql_data volume
293 # save the mysql_data volume
295 - $PWD/mysql_dir:/var/lib/mysql
294 - $PWD/mysql_dir:/var/lib/mysql
296
295
@@ -14,13 +14,34 b' Please see detailed documentation about traefik SSL support here:'
14 https://doc.traefik.io/traefik/https/tls/
14 https://doc.traefik.io/traefik/https/tls/
15
15
16
16
17 Enable custom traefik config
18 ++++++++++++++++++++++++++++
19
20 By default the shared :file:`.custom/traefik_custom/` directory is not mount into traefik. We need to enable this first,
21 before enabling any of the below SSL certificates.
22
23 In the file :file:`.custom/docker-compose-router.override.yaml` uncomment the two binds that would override defaults
24 and allow custom code from the `.custom` directory
25
26
27 .. code-block:: yaml
28
29 traefik:
30
31 volumes:
32 # ... other items here ...
33
34 # THESE TWO NEEDS TO BE UNCOMMENTED
35 - $PWD/.custom/traefik_custom:/etc/traefik:ro
36 - $PWD/.custom/traefik_custom/dynamic:/etc/traefik_dynamic:ro
37
38
17 Enable file based certificates
39 Enable file based certificates
18 ++++++++++++++++++++++++++++++
40 ++++++++++++++++++++++++++++++
19
41
20 File based certificates (including self-signed) should be places inside this :file:`.custom/traefik_custom/dynamic/certs`
42 File based certificates (including self-signed) should be places inside this :file:`.custom/traefik_custom/dynamic/certs`
21 We recommend using standard names for the .crt file (rhodecode-ssl.crt) and .key file (rhodecode-ssl.key).
43 We recommend using standard names for the .crt file (rhodecode-ssl.crt) and .key file (rhodecode-ssl.key).
22
44
23
24 e.g.
45 e.g.
25
46
26 .. code-block:: bash
47 .. code-block:: bash
General Comments 0
You need to be logged in to leave comments. Login now