mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-30 03:43:28 +01:00
1e9cf1dff0
to make them available for "RUN --mount=type=secret" statements inside the Dockerfile. Keep using --volume to pass file secrets to "podman run". Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
23 lines
566 B
YAML
23 lines
566 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
test:
|
|
image: test
|
|
secrets:
|
|
- run_secret # implicitly mount to /run/secrets/run_secret
|
|
- source: run_secret
|
|
target: /tmp/run_secret2 # explicit mount point
|
|
|
|
build:
|
|
context: .
|
|
secrets:
|
|
- build_secret # can be mounted in Dockerfile with "RUN --mount=type=secret,id=build_secret"
|
|
- source: build_secret
|
|
target: build_secret2 # rename to build_secret2
|
|
|
|
secrets:
|
|
build_secret:
|
|
file: ./my_secret
|
|
run_secret:
|
|
file: ./my_secret
|