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

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