Skip to content

Commit

Permalink
EB: Mount a volume in /tmp to save the sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Nov 14, 2024
1 parent c1b48be commit da4b045
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/engineblock/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
mode: "0644"
loop: "{{ engine_key_and_certs }}"

- name: Create Docker volume to contain the sessions
community.docker.docker_volume:
name: engineblock_sessions
state: present

- name: Create the container
community.docker.docker_container:
name: "engineblock"
Expand All @@ -197,6 +202,7 @@
env:
APACHE_UID: "#{{ engine_uid.uid }}"
APACHE_GUID: "#{{ engine_guid.gid }}"
TZ: "{{ timezone }}"
etc_hosts:
host.docker.internal: host-gateway
mounts:
Expand Down Expand Up @@ -227,3 +233,6 @@
- source: "/opt/openconext/common/favicon.ico"
target: "/var/www/html/web/favicon.ico"
type: bind
- source: engineblock_sessions
target: /tmp/
type: volume

0 comments on commit da4b045

Please sign in to comment.