2018-02-28 15:48:38 +00:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
# 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 tag of test server images.
|
|
|
|
# For example:
|
2018-11-30 08:14:54 +00:00
|
|
|
# REPOSITORY TAG
|
|
|
|
# qt-test-server-apache2 537fe302f61851d1663f41495230d8e3554a4a13
|
2018-02-28 15:48:38 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
apache2:
|
|
|
|
container_name: qt-test-server-apache2
|
2018-11-30 08:14:54 +00:00
|
|
|
domainname: ${TEST_DOMAIN}
|
2018-02-28 15:48:38 +00:00
|
|
|
hostname: apache2
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-apache2:537fe302f61851d1663f41495230d8e3554a4a13
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./apache2
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: [service/ssl.sh, service/apache2.sh]
|
2018-02-28 15:48:38 +00:00
|
|
|
|
|
|
|
squid:
|
|
|
|
container_name: qt-test-server-squid
|
2018-11-30 08:14:54 +00:00
|
|
|
domainname: ${TEST_DOMAIN}
|
2018-02-28 15:48:38 +00:00
|
|
|
hostname: squid
|
|
|
|
depends_on:
|
|
|
|
- apache2
|
|
|
|
external_links:
|
2018-11-30 08:14:54 +00:00
|
|
|
- apache2:apache2.${TEST_DOMAIN}
|
2019-02-12 16:05:51 +00:00
|
|
|
- cyrus:cyrus.${TEST_DOMAIN}
|
|
|
|
- iptables:iptables.${TEST_DOMAIN}
|
|
|
|
- vsftpd:vsftpd.${TEST_DOMAIN}
|
2019-02-25 15:15:18 +00:00
|
|
|
- echo:echo.${TEST_DOMAIN}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-squid:9c32f41b19aca3d778733c4d8fb0ecc5955e893c
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./squid
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +00:00
|
|
|
command: service/squid.sh
|
|
|
|
|
|
|
|
vsftpd:
|
|
|
|
container_name: qt-test-server-vsftpd
|
2018-11-30 08:14:54 +00:00
|
|
|
domainname: ${TEST_DOMAIN}
|
2018-02-28 15:48:38 +00:00
|
|
|
hostname: vsftpd
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-vsftpd:f3a9c8d793a77cc007c0e4e481bec01f9e3eeb7e
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./vsftpd
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +00:00
|
|
|
command: service/vsftpd.sh
|
|
|
|
|
|
|
|
ftp-proxy:
|
|
|
|
container_name: qt-test-server-ftp-proxy
|
2018-11-30 08:14:54 +00:00
|
|
|
domainname: ${TEST_DOMAIN}
|
2018-02-28 15:48:38 +00:00
|
|
|
hostname: ftp-proxy
|
|
|
|
depends_on:
|
|
|
|
- vsftpd
|
|
|
|
external_links:
|
2018-11-30 08:14:54 +00:00
|
|
|
- vsftpd:vsftpd.${TEST_DOMAIN}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-ftp-proxy:d7de8b28392d173db512a558ccc84ead8bece2ae
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./ftp-proxy
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +00:00
|
|
|
command: service/ftp-proxy.sh
|
|
|
|
|
|
|
|
danted:
|
|
|
|
container_name: qt-test-server-danted
|
2018-11-30 08:14:54 +00:00
|
|
|
domainname: ${TEST_DOMAIN}
|
2018-02-28 15:48:38 +00:00
|
|
|
hostname: danted
|
|
|
|
depends_on:
|
|
|
|
- apache2
|
|
|
|
- vsftpd
|
|
|
|
- ftp-proxy
|
|
|
|
external_links:
|
2018-11-30 08:14:54 +00:00
|
|
|
- apache2:apache2.${TEST_DOMAIN}
|
|
|
|
- vsftpd:vsftpd.${TEST_DOMAIN}
|
|
|
|
- ftp-proxy:ftp-proxy.${TEST_DOMAIN}
|
2019-02-07 12:23:36 +00:00
|
|
|
- cyrus:cyrus.${TEST_DOMAIN}
|
2019-02-05 10:33:19 +00:00
|
|
|
- echo:echo.${TEST_DOMAIN}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-danted:35607f9b790524cf9690c7d12a9a401696b7b6b5
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./danted
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +00:00
|
|
|
command: service/danted.sh
|
2019-02-07 12:23:36 +00:00
|
|
|
|
|
|
|
cyrus:
|
|
|
|
container_name: qt-test-server-cyrus
|
|
|
|
domainname: ${TEST_DOMAIN}
|
|
|
|
hostname: cyrus
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-cyrus:c8d72754abc0e501afd624ce838e4df35505abc9
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./cyrus
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: [service/ssl.sh, service/cyrus.sh]
|
2019-02-12 16:05:51 +00:00
|
|
|
|
|
|
|
iptables:
|
|
|
|
container_name: qt-test-server-iptables
|
|
|
|
domainname: ${TEST_DOMAIN}
|
|
|
|
hostname: iptables
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-iptables:cb7a8bd6d28602085a88c8ced7d67e28e75781e2
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./iptables
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
2019-02-12 16:05:51 +00:00
|
|
|
command: service/iptables.sh
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
2019-02-05 10:33:19 +00:00
|
|
|
|
|
|
|
echo:
|
2019-03-22 15:20:52 +00:00
|
|
|
container_name: qt-test-server-echo
|
|
|
|
domainname: ${TEST_DOMAIN}
|
|
|
|
hostname: echo
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ${SHARED_DATA}/Dockerfile
|
|
|
|
args:
|
|
|
|
provisioningImage: qt-test-server-echo:b29ad409e746a834c1055fd0f7a55fd5056da6ea
|
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./echo
|
|
|
|
test_domain: ${TEST_DOMAIN}
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: service/echo.sh
|