赞
踩
docker pull kanboard/kanboard:latest
docker run -d --name kanboard -p 8181:80 -t kanboard/kanboard:latest
#获取docker-compose.ymI配置文件
wget https://raw.githubusercontent.com/wekan/wekan/master/docker compose.yml
#修改ports下的端口,访问宿主机9001端口就会访问到容器里的8080端口
ports:
-9001:8080
root_url:
--ROOT_URL=http:192.168.2.197:9001
#执行docker-compose命令
docker-compose up -d
编辑docker-compose.yml文件
version: '2' services: restyaboard: image: cangeli/docker-restyaboard:alpine ports: - 1234:80 volumes: - /var/opt/restya/media:/usr/share/nginx/html/media environment: - POSTGRES_HOST=postgres - POSTGRES_USER=admin - POSTGRES_PASSWORD=admin - POSTGRES_DB=restyaboard depends_on: - postgres restart: always postgres: image: kiasaki/alpine-postgres ports: - 5432:5432 environment: - POSTGRES_HOST=postgres - POSTGRES_USER=admin - POSTGRES_PASSWORD=admin - POSTGRES_DB=restyaboard restart: always
#执行docker-compose命令
docker-compose up -d
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。