赞
踩
参考官方文档 基于单机文件系统部署
mkdir -p /Users/wanfei/docker-compose/polardb-pg && cd /Users/wanfei/docker-compose/polardb-pg cat <<EOF> /Users/wanfei/docker-compose/polardb-pg/docker-compose.yaml version: '3' services: polardb-pg: restart: always image: polardb/polardb_pg_local_instance container_name: polardb-pg environment: POLARDB_USER: root POLARDB_PASSWORD: root TZ: Asia/Shanghai volumes: - /Users/wanfei/docker-compose/polardb-pg/data:/var/polardb ports: - 54320-54322:5432-5434 EOF
默认数据库:
postgres
;默认用户名:root
docker-compose -f /Users/wanfei/docker-compose/polardb-pg/docker-compose.yaml up -d
docker-compose -f /Users/wanfei/docker-compose/polardb-pg/docker-compose.yaml down
mkdir -p /root/i/docker-compose/polardb-pg && cd /root/i/docker-compose/polardb-pg cat <<EOF> /root/i/docker-compose/polardb-pg/docker-compose.yaml version: '3' services: polardb-pg: restart: always image: polardb/polardb_pg_local_instance container_name: polardb-pg environment: POLARDB_USER: root POLARDB_PASSWORD: root TZ: Asia/Shanghai volumes: - /root/i/docker-compose/polardb-pg/data:/var/polardb ports: - 54320-54322:5432-5434 EOF
默认数据库:
postgres
;默认用户名:root
docker-compose -f /root/i/docker-compose/polardb-pg/docker-compose.yaml up -d
docker-compose -f /root/i/docker-compose/polardb-pg/docker-compose.yaml down
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。