В корне создаём папку «zentao» и файлы файлы «docker-compose.yml»
mkdir zentao
touch zentao/docker-compose.yml
добавляем содержимое в docker-compose.yml cat > zentao/docker-compose.yml
version: '3'
services:
zentao-mysql:
image: mysql:5.7
container_name: zentao-mysql
volumes:
- ./mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=(youpassword)
- MYSQL_DATABASE=zentao
zentao-app:
image: hub.zentao.net/app/zentao:latest
container_name: zentao-app
volumes:
- ./data:/data
depends_on:
- zentao-mysql
ports:
- 80:80
links:
- zentao-mysql
environment:
- MYSQL_INTERNAL=false
- ZT_MYSQL_HOST=zentao-mysql
- ZT_MYSQL_PORT=3306
- ZT_MYSQL_USER=root
- ZT_MYSQL_PASSWORD=(youpassword)
- ZT_MYSQL_DB=zentao
- PHP_MAX_EXECUTION_TIME=120
- PHP_MEMORY_LIMIT=512M
- PHP_POST_MAX_SIZE=128M
- PHP_UPLOAD_MAX_FILESIZE=128M
- LDAP_ENABLED=false
- SMTP_ENABLED=false
- APP_DEFAULT_PORT=80
- APP_DOMAIN=zentao.(youdomaine)
- PROTOCOL_TYPE=http
- IS_CONTAINER=true
- LINK_GIT=false
- LINK_CI=false
# labels:
# - traefik.enable=true
# - traefik.http.middlewares.zentao-app_https.redirectscheme.scheme=https
# - traefik.http.routers.zentao-app.entrypoints=web
# - traefik.http.routers.zentao-app.middlewares=zentao-app_https@docker
# - traefik.http.routers.zentao-app.rule=Host(`zentao.(youdomaine)`)
# - traefik.http.routers.zentao-app_https.entrypoints=websecure
# - traefik.http.routers.zentao-app_https.rule=Host(`zentao.(youdomaine)`)
# - traefik.http.routers.zentao-app_https.tls=true
# - traefik.http.routers.zentao-app_https.tls.certresolver=le
# - traefik.http.services.zentao-app.loadbalancer.server.port=80
networks:
default:
external:
name: traefik_network
запускаем контейнер командой
docker-compose up -d