test: add tmpfs test case

This commit is contained in:
Xyphuz 2022-05-27 20:26:44 +08:00
parent 83e4f3422f
commit eb024311ea
2 changed files with 16 additions and 0 deletions

View file

@ -227,6 +227,17 @@ from compose_viz.parser import Parser
),
],
),
Service(
name="tmp",
image="awesome/nginx",
volumes=[
Volume(
source="/app",
target="/app",
type=VolumeType.tmpfs,
),
],
),
],
),
),

View file

@ -17,6 +17,11 @@ services:
service: common
volumes:
- cli-volume:/var/lib/backup/data:ro
tmp:
image: awesome/nginx
volumes:
- type: tmpfs
target: /app
volumes:
common-volume: