File: docker-compose.yml

package info (click to toggle)
swtpm 0.10.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,008 kB
  • sloc: ansic: 20,787; sh: 14,667; makefile: 760; python: 173
file content (37 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
version: '3.7'

services:

  swtpm:
    build:
      context: .
    volumes:
      - tpm-data:/swtpm
    networks:
      - swtpm
    command: ['socket', '--tpm2',
              '--server', 'type=unixio,path=/swtpm/swtpm.sock',
              '--ctrl', 'type=unixio,path=/swtpm/swtpm.sock.ctrl',
              '--tpmstate', 'dir=/swtpm',
              '--log', 'file=swtpm.log',
              '--log', 'level=20',
              '--flags', 'not-need-init,startup-clear']

  swtpm-test:
    image: docker.io/strongx509/tpm:5.9.13
    depends_on:
      - swtpm
    volumes:
      - tpm-data:/swtpm
    networks:
      - swtpm
    environment:
      TPM2TOOLS_TCTI: swtpm:path=/swtpm/swtpm.sock
    command: ['tpm2', 'clear']

volumes:
  tpm-data:

networks:
  swtpm: