Просмотр исходного кода

Use tmpfs instead of persistent mount

pull/2089/head
Julian-Samuel Gebühr 3 лет назад
Родитель
Сommit
a2379981a2
2 измененных файлов: 2 добавлений и 1 удалений
  1. +1
    -0
      roles/matrix-cactus-comments/defaults/main.yml
  2. +1
    -1
      roles/matrix-cactus-comments/templates/systemd/matrix-cactus-comments.service.j2

+ 1
- 0
roles/matrix-cactus-comments/defaults/main.yml Просмотреть файл

@@ -18,6 +18,7 @@ matrix_cactus_comments_as_token: ''
matrix_cactus_comments_hs_token: ''
matrix_cactus_comments_homeserver_url: ''
matrix_cactus_comments_user_id: "bot.cactusbot"
matrix_cactus_comments_tmp_directory_size_mb: 1

matrix_cactus_comments_container_port: 5000



+ 1
- 1
roles/matrix-cactus-comments/templates/systemd/matrix-cactus-comments.service.j2 Просмотреть файл

@@ -22,7 +22,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-cactus-comment
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
--read-only \
--env-file {{ matrix_cactus_comments_app_service_env_file }} \
--mount type=bind,src={{ matrix_cactus_comments_container_tmp_path }},dst=/tmp \
--tmpfs=/tmp:rw,noexec,nosuid,size={{ matrix_cactus_comments_tmp_directory_size_mb }}m \
--network={{ matrix_docker_network }} \
{{ matrix_cactus_comments_docker_image }}



Загрузка…
Отмена
Сохранить