github.com/defang-io/defang/src@v0.0.0-20240505002154-bdf411911834/tests/testproj/compose.yaml (about)

     1  name: tests
     2  services:
     3    dfnx:
     4      restart: unless-stopped
     5      build:
     6        context: .
     7        dockerfile: Dockerfile
     8        target: testproj
     9        args:
    10          DNS: dfnx
    11      env_file:
    12        - fileName.env
    13      deploy:
    14        resources:
    15          limits:
    16            cpus: '0.50'
    17            memory: 512M
    18          reservations:
    19            cpus: '0.25'
    20            memory: 256M
    21      ports:
    22        - target: 80
    23          mode: ingress
    24        - target: 1234
    25          # mode: host
    26      secrets:
    27        - dummy
    28      healthcheck:
    29        test: ["CMD", "curl", "-f", "http://localhost/"]
    30        # disable: true
    31  
    32    # dfnx:
    33    #   build:
    34    #     context: .
    35        # dockerfile: Dockerfile.dfn
    36      # ports:
    37        # - 80
    38  
    39    echo:
    40      image: ealen/echo-server
    41      ports:
    42        - target: 80
    43          mode: ingress
    44      healthcheck:
    45        test: ["CMD", "curl", "-f", "http://localhost/"]
    46      # domainname: echotest.gnafed.click
    47      profiles:
    48        - donotstart
    49      x-defang-dns-role: arn:aws:iam::123456789012:role/ecs-service-role
    50      x-defang-static: ./static
    51  
    52  secrets:
    53    dummy:
    54      external: true
    55      name: dummy
    56  
    57  x-unsupported: unsupported