github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/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 version: '3' 4 services: 5 web_app: 6 # The name we use for the Docker image in build.json (or build.pkr.hcl) 7 image: gruntwork/packer-docker-example 8 9 # Run the sample web app on port 8080 10 command: ["ruby", "/home/ubuntu/app.rb", "${SERVER_PORT}", "${SERVER_TEXT}"] 11 12 # Bind-mount the Ruby app so we can have "hot reload" during testing 13 volumes: 14 - ./app.rb:/home/ubuntu/app.rb 15 16 # Expose the sample app's port on the host OS 17 ports: 18 - "${SERVER_PORT}:${SERVER_PORT}"