2019-04-11 14:04:06 +00:00
|
|
|
version: '2.1'
|
2018-09-20 13:16:57 +00:00
|
|
|
|
|
|
|
# The tag of images is used by docker compose file to launch the corresponding
|
|
|
|
# docker containers. The value of tag comes from the provisioning script
|
|
|
|
# (coin/provisioning/.../testserver/docker_testserver.sh). The script gets SHA-1
|
|
|
|
# of each server context as the tag of docker images. If one of the server
|
|
|
|
# contexts gets changes, please make sure to update this compose file as well.
|
|
|
|
# You can run command 'docker images' to list all the tags of test server images.
|
|
|
|
# For example:
|
2018-11-30 08:14:54 +00:00
|
|
|
# REPOSITORY TAG
|
|
|
|
# qt-test-server-apache2 537fe302f61851d1663f41495230d8e3554a4a13
|
2018-09-20 13:16:57 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
apache2:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-09-20 13:16:57 +00:00
|
|
|
container_name: qt-test-server-apache2
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-apache2}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-apache2:537fe302f61851d1663f41495230d8e3554a4a13
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./apache2
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: [service/ssl.sh, service/apache2.sh]
|
2018-11-30 08:14:54 +00:00
|
|
|
environment:
|
2019-01-25 21:48:29 +00:00
|
|
|
- test_cert="qt-test-server-host-network-cacert.pem"
|
2018-09-20 13:16:57 +00:00
|
|
|
|
|
|
|
squid:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-09-20 13:16:57 +00:00
|
|
|
container_name: qt-test-server-squid
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-squid}
|
2018-09-20 13:16:57 +00:00
|
|
|
depends_on:
|
|
|
|
- apache2
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-squid:9c32f41b19aca3d778733c4d8fb0ecc5955e893c
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./squid
|
|
|
|
entrypoint: service/startup.sh
|
2018-09-20 13:16:57 +00:00
|
|
|
command: service/squid.sh
|
|
|
|
|
|
|
|
vsftpd:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-09-20 13:16:57 +00:00
|
|
|
container_name: qt-test-server-vsftpd
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-vsftpd}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-vsftpd:f3a9c8d793a77cc007c0e4e481bec01f9e3eeb7e
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./vsftpd
|
|
|
|
entrypoint: service/startup.sh
|
2018-09-20 13:16:57 +00:00
|
|
|
command: service/vsftpd.sh
|
|
|
|
|
|
|
|
ftp-proxy:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-09-20 13:16:57 +00:00
|
|
|
container_name: qt-test-server-ftp-proxy
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-ftp-proxy}
|
2018-09-20 13:16:57 +00:00
|
|
|
depends_on:
|
|
|
|
- vsftpd
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-ftp-proxy:d7de8b28392d173db512a558ccc84ead8bece2ae
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./ftp-proxy
|
|
|
|
entrypoint: service/startup.sh
|
2018-09-20 13:16:57 +00:00
|
|
|
command: service/ftp-proxy.sh
|
|
|
|
|
|
|
|
danted:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-09-20 13:16:57 +00:00
|
|
|
container_name: qt-test-server-danted
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-danted}
|
2018-09-20 13:16:57 +00:00
|
|
|
depends_on:
|
|
|
|
- apache2
|
|
|
|
- vsftpd
|
|
|
|
- ftp-proxy
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-danted:35607f9b790524cf9690c7d12a9a401696b7b6b5
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./danted
|
|
|
|
entrypoint: service/startup.sh
|
2018-09-20 13:16:57 +00:00
|
|
|
command: service/danted.sh
|
|
|
|
environment:
|
2019-01-18 23:11:54 +00:00
|
|
|
- danted_internal=${MACHINE_IP}
|
|
|
|
- danted_external=${MACHINE_IP}
|
|
|
|
- danted_auth_internal=${MACHINE_IP}
|
|
|
|
- danted_auth_external=${MACHINE_IP}
|