podman-compose/tests/integration/secrets/docker-compose.yaml
Monika Kairaityte 838957b902 test/integration: Automate manual 'secrets' test
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
2025-02-19 21:42:52 +02:00

49 lines
1.4 KiB
YAML

version: "3.8"
services:
test:
image: busybox
command:
- /tmp/print_secrets.sh
tmpfs:
- /run
- /tmp
volumes:
- ./print_secrets.sh:/tmp/print_secrets.sh:z
secrets:
- podman_compose_test_secret
# Custom name reference for mounted external secret is not supported
#- podman_compose_test_secret_2
- source: podman_compose_test_secret_3
# warning about un-supported "target" field
target: podman_compose_test_secret_3
uid: '103'
gid: '103'
mode: 400
- file_secret
- source: file_secret
target: custom_name
- source: file_secret
target: /etc/custom_location
- source: file_secret
# warning about un-supported "uid", "gid", "mode" fields
target: unused_params_warning
uid: '103'
gid: '103'
mode: 400
- source: podman_compose_test_secret
target: ENV_SECRET
type: env
secrets:
podman_compose_test_secret:
external: true
# Custom name reference for mounted external secret is not supported
#podman_compose_test_secret_2:
#external: true
#name: podman_compose_test_secret_custom_name
podman_compose_test_secret_3:
external: true
name: podman_compose_test_secret_3
file_secret:
file: ./my_secret