File: docker-compose.yml

package info (click to toggle)
podman-compose 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "3"
networks:
    mystack:
services:
    web1:
      image: busybox
      hostname: web1
      command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
      working_dir: /var/www/html
      ports:
        - 8001:8001
      volumes:
        - ./test1.txt:/var/www/html/index.txt:ro,z
    web2:
      image: busybox
      hostname: web2
      command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
      working_dir: /var/www/html
      ports:
        - 8002:8001
      volumes:
        - ./test2.txt:/var/www/html/index.txt:ro,z