docker-compose安装禅道
便于整理和记忆,docker相关目录统一放在/usr/local/docker中
gitlab所处目录:/usr/local/docker/zentao
使用docker-compose则必不可少的是docker-compose.yml文件放在zentao文件目录下
docker-compose.yml
version: '3.1'
services:
zendao:
image: idoop/zentao:10.4
restart: always
container_name: zendao
environment:
MYSQL_ROOT_PASSWORD: 123456
ports:
- 9001:80
volumes:
- ./app:/app/zentaopms
- ./data:/var/lib/mysql