File: docker-compose.yaml

package info (click to toggle)
podman-compose 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,004 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (22 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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