<#-- ~ Licensed to the Apache Software Foundation (ASF) under one or more ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ The ASF licenses this file to You under the Apache License, Version 2.0 ~ (the "License"); you may not use this file except in compliance with ~ the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> version: '2.1' networks: default: name: ${network_name} services: ${docker_container_name}: image: ${docker_image_name}:${docker_image_version} <#if hostname??> hostname: ${hostname} <#if links??> links: <#list links as link> - ${link} environment: <#if environments??> <#list environments as env> - ${env} <#if start_script??> - SCENARIO_START_SCRIPT=${start_script} - SCENARIO_NAME=${scenario_name} - SCENARIO_VERSION=${scenario_version} - SCENARIO_ENTRY_SERVICE=${entry_service} - SCENARIO_HEALTH_CHECK_URL=${health_check} volumes: - ${agent_home}:/usr/local/skywalking/scenario/agent - ${scenario_home}:/usr/local/skywalking/scenario <#if depends_on??> depends_on: <#list depends_on as item> - ${item} <#list services as service> ${service.name}: image: ${service.imageName} hostname: ${service.hostname} <#if service.volumes??> volumes: <#list service.volumes as volume> - ${volume} <#if service.environment??> environment: <#list service.environment as environment> - ${environment} <#if service.expose??> expose: <#list service.expose as expose> - ${expose} <#if service.startScript??> command: <#list service.startScript as startScript> - ${startScript} <#if service.depends_on??> depends_on: <#list service.depends_on as item> - ${item} <#if service.entrypoint??> entrypoint: <#list service.entrypoint as item> - ${item} <#if service.healthcheck??> healthcheck: <#list service.healthcheck as item> ${item}