github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/packer-docker-example/docker-compose.yml (about)

     1  # This file can be used with Docker and Docker Compose to run the web app in the Packer template 100% locally, without
     2  # having to deploy anything to AWS.
     3  
     4  version: '3'
     5  services:
     6    web_app:
     7      # The name we use for the Docker image in build.json
     8      image: gruntwork/packer-docker-example
     9  
    10      # Run the sample web app on port 8080
    11      command: ["ruby", "/home/ubuntu/app.rb", "${SERVER_PORT}", "${SERVER_TEXT}"]
    12  
    13      # Bind-mount the Ruby app so we can have "hot reload" during testing
    14      volumes:
    15        - ./app.rb:/home/ubuntu/app.rb
    16  
    17      # Expose the sample app's port on the host OS
    18      ports:
    19        - "${SERVER_PORT}:${SERVER_PORT}"