- 创建testlink的yml配置文件 testlink.yml
version: '3'
services:
mariadb:
image: 'bitnami/mariadb:latest'
container_name: mariadb-for-testlink
environment:
- MARIADB_PASSWORD=12345679
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_testlink
- MARIADB_DATABASE=bitnami_testlink
volumes:
# 数据映射到宿主机目录/home/testlink/mariadb-persistence
- '/home/testlink/mariadb-persistence:/bitnami'
privileged:
true
user:
root
testlink:
image: 'bitnami/testlink:latest'
container_name: testlink
ports:
# 宿主机端口:容器内部apache端口
- '8099:80'
# 宿主机端口:容器内部https端口
- '8443:443'
environment:
- APACHE_HTTP_PORT_NUMBER=80
- APACHE_HTTPS_PORT_NUMBER=443
- TESTLINK_USERNAME=root
- TESTLINK_PASSWORD=12345679
- TESTLINK_DATABASE_HOST=mariadb
- TESTLINK_DATABASE_PORT_NUMBER=3306
- TESTL