1version: '2.1' 2 3# This is a template docker-compose file shared with all modules. It is based 4# on 'extending services' feature of compose file version 2.1. 5# See https://docs.docker.com/compose/extends/#extending-services for details. 6# 7# Example: testserver/docker-compose.yml 8# services: 9# foo: 10# extends: 11# file: ${SHARED_DATA}/docker-compose-common.yml 12# service: ${SHARED_SERVICE} 13# container_name: qt-test-server-foo 14# hostname: ${HOST_NAME:-foo} 15# build: 16# context: . 17# args: 18# provisioningImage: qt-test-server-foo:537fe302f61851d1663... 19# serviceDir: ./foo 20# command: service/foo.sh 21 22x-services: 23 &default-service 24 domainname: ${TEST_DOMAIN} 25 build: 26 context: . 27 dockerfile: ${SHARED_DATA}/Dockerfile 28 args: 29 test_domain: ${TEST_DOMAIN} 30 entrypoint: ./startup.sh 31 32services: 33 bridge-network: *default-service 34 host-network: 35 << : *default-service 36 network_mode: "host" 37 extra_hosts: 38 - "qt-test-server.${TEST_DOMAIN}:${MACHINE_IP}" 39