44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
service_name_overwrite: phpvms_test # noqa: var-naming[no-role-prefix]
|
|
phpvms_domain: "test.kondor-virtual.de"
|
|
|
|
phpvms_volume_opts:
|
|
- "seal"
|
|
- "uid={{ phpvms_uid }}"
|
|
- "gid={{ phpvms_gid }}"
|
|
- "username={{ opentofu.hcloud_storage_box_accounts.phpvms_test.user }}"
|
|
- "password={{ opentofu.hcloud_storage_box_accounts.phpvms_test.pass }}"
|
|
|
|
_phpvms_test_compose:
|
|
file:
|
|
services:
|
|
phpvms-app:
|
|
volumes:
|
|
- type: volume
|
|
source: layout
|
|
target: /var/www/html/resources/views/layouts/kondor-virtual
|
|
volume:
|
|
subpath: layout
|
|
copy-job:
|
|
image: bash
|
|
command: |
|
|
bash -c "while true
|
|
do
|
|
cp -rf /mnt/kondor-virtual_in/* /mnt/public/kondor-virtual
|
|
sleep 60
|
|
done"
|
|
volumes:
|
|
- ./public/:/mnt/public:rw
|
|
- type: volume
|
|
source: layout
|
|
target: /mnt/kondor-virtual_in
|
|
volume:
|
|
subpath: public
|
|
volumes:
|
|
layout:
|
|
driver_opts:
|
|
type: cifs
|
|
o: "{{ phpvms_volume_opts | join(',') }}"
|
|
device: "//{{ opentofu.hcloud_storage_box_accounts.phpvms_test.host }}/{{ opentofu.hcloud_storage_box_accounts.phpvms_test.user }}"
|
|
|
|
_phpvms_compose: "{{ phpvms_compose_base | combine(phpvms_test_compose, list_merge='append_rp', recursive=true) }}"
|
|
phpvms_compose: "{{ phpvms_compose_base }}"
|