mirror of
https://github.com/containers/podman-compose.git
synced 2025-05-19 21:50:59 +02:00
49 lines
1.4 KiB
YAML
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
|