Use a NFS volume for the attachments

This commit is contained in:
Andrea Dell'Amico 2023-05-22 20:06:39 +02:00
parent a1d53e1269
commit de6cfbfbb4
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,6 @@ epas_docker_registry_pwd: 'use a vault file'
epas_docker_network: 'epas_net'
epas_docker_attachments_node: 'localhost'
epas_attachments_volume: 'epas_attachments_data'
epas_node_constraints: 'node.labels.epas_storage == attachments'
epas_behind_haproxy: True
epas_haproxy_public_net: 'haproxy-public'
# DB

View File

@ -7,6 +7,11 @@ networks:
volumes:
{{ epas_attachments_volume }}:
driver: local
driver_opts:
type: nfs4
o: "nfsvers=4,addr=146.48.123.250,rw"
device: ":/nfs/epas_prod_attachments_data"
{% if epas_dockerized_db %}
{{ epas_pg_backups_volume }}:
{{ epas_db_volume }}: