2019-04-11 14:04:06 +00:00
|
|
|
version: '2.1'
|
2018-02-28 15:48:38 +00:00
|
|
|
|
2019-11-30 17:43:50 +00:00
|
|
|
# The tag of images is used by docker compose file to launch the correct
|
|
|
|
# docker containers. By default we always launch the "latest" tag.
|
|
|
|
#
|
|
|
|
# But in the "docker build" phase, we also tag the images with a unique tag,
|
|
|
|
# the SHA1 hash of all files used for "docker build" - see sha1tree() in
|
|
|
|
# provisioning.
|
|
|
|
#
|
|
|
|
# So if you want to update the docker image at a specific time, make sure that
|
|
|
|
# 1. you modify this file to run the specific image's SHA1 tag, instead of
|
|
|
|
# "latest"
|
|
|
|
# 2. you build two docker images in provisioning, the currently used one,
|
|
|
|
# plus the new one that you tag as "latest"
|
|
|
|
# 3. you switch this file to the "latest" tag when ready
|
|
|
|
|
|
|
|
# You can run `docker images` to list all the tags of available images:
|
2018-02-28 15:48:38 +00:00
|
|
|
# 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:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-02-28 15:48:38 +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:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-apache2:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./apache2
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: [service/ssl.sh, service/apache2.sh]
|
2018-02-28 15:48:38 +00:00
|
|
|
|
|
|
|
squid:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2018-02-28 15:48:38 +00:00
|
|
|
container_name: qt-test-server-squid
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-squid}
|
2018-02-28 15:48:38 +00:00
|
|
|
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: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-squid:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./squid
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +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-02-28 15:48:38 +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:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-vsftpd:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./vsftpd
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +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-02-28 15:48:38 +00:00
|
|
|
container_name: qt-test-server-ftp-proxy
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-ftp-proxy}
|
2018-02-28 15:48:38 +00:00
|
|
|
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: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-ftp-proxy:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./ftp-proxy
|
|
|
|
entrypoint: service/startup.sh
|
2018-02-28 15:48:38 +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-02-28 15:48:38 +00:00
|
|
|
container_name: qt-test-server-danted
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-danted}
|
2018-02-28 15:48:38 +00:00
|
|
|
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: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-danted:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./danted
|
|
|
|
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:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2019-02-07 12:23:36 +00:00
|
|
|
container_name: qt-test-server-cyrus
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-cyrus}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-cyrus:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./cyrus
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: [service/ssl.sh, service/cyrus.sh]
|
2019-02-12 16:05:51 +00:00
|
|
|
|
|
|
|
iptables:
|
2019-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2019-02-12 16:05:51 +00:00
|
|
|
container_name: qt-test-server-iptables
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-iptables}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-iptables:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./iptables
|
|
|
|
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-04-11 14:04:06 +00:00
|
|
|
extends:
|
|
|
|
file: ${SHARED_DATA}/docker-compose-common.yml
|
|
|
|
service: ${SHARED_SERVICE}
|
2019-03-22 15:20:52 +00:00
|
|
|
container_name: qt-test-server-echo
|
2019-04-11 14:04:06 +00:00
|
|
|
hostname: ${HOST_NAME:-echo}
|
2019-03-22 15:20:52 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2019-11-30 17:43:50 +00:00
|
|
|
provisioningImage: qt-test-server-echo:latest
|
2019-03-22 15:20:52 +00:00
|
|
|
shareDir: ./common
|
|
|
|
serviceDir: ./echo
|
|
|
|
entrypoint: service/startup.sh
|
|
|
|
command: service/echo.sh
|