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 (49 lines) | stat: -rw-r--r-- 1,330 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
    web:
      image: nopush/podman-compose-test
      command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"]
      working_dir: /var/www/html
      restart: always
      volumes:
        - /var/www/html
      tmpfs:
        - /run
        - /tmp
    web1:
      image: nopush/podman-compose-test
      command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
      restart: unless-stopped
      working_dir: /var/www/html
      volumes:
        - myvol1:/var/www/html:ro,z
    web2:
      image: nopush/podman-compose-test
      command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
      working_dir: /var/www/html
      volumes:
        - myvol2:/var/www/html:ro
    web3:
      image: nopush/podman-compose-test
      command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
      working_dir: /var/www/html
      volumes:
        - myvol2:/var/www/html
        - data:/var/www/html_data
        - data2:/var/www/html_data2
        - data3:/var/www/html_data3

volumes:
  myvol1:
  myvol2:
    labels:
      mylabel: myval
  data:
    name: my-app-data
    external: true
  data2:
    external:
      name: actual-name-of-volume
  data3:
    name: my-app-data3