fix: host mapping for pds operator to make reqs outside docker
Deploy PDS / deploy (push) Canceled after 0s

This commit is contained in:
gov committed 2026-09-20 18:40:01 -04:00
1 parent fa3de78336
commit c6122b9507
1 file changed
+5
+5
View File
@@ -13,6 +13,11 @@ services:
- AUDIT_LOG_PATH=/data/audit.log
ports:
- "127.0.0.1:8787:8787"
# the host's /etc/hosts maps the PDS hostname to 127.0.1.1 (cloud-init
# manage_etc_hosts), which Docker propagates to container DNS — pin the
# real address so the operator can reach the PDS
extra_hosts:
- "{{ pds_hostname }}:{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"
volumes:
# bind mount keeps data under /pds — captured by the backup tarball
- ./data:/data