Merge pull request #100 from alimy/main

docker-compose localoss instead minio as object storage and add phpmysqladmin as db manager
pull/105/head
Michael Li 3 years ago committed by GitHub
commit 16a9e7343d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,7 +194,7 @@ PaoPao主要由以下优秀的开源项目/工具构建
```sh ```sh
%> git clone https://github.com/rocboss/paopao-ce.git %> git clone https://github.com/rocboss/paopao-ce.git
%> docker compose up --build %> docker compose up --build
# visit http://127.0.0.1:8008 # visit paopao-ce(http://127.0.0.1:8008) and phpMysqlAdmin(http://127.0.0.1:8080)
``` ```
默认是使用config.yaml.sample的配置如果需要自定义配置请拷贝默认配置文件(比如config.yaml)修改后再同步配置到docker-compose.yaml如下 默认是使用config.yaml.sample的配置如果需要自定义配置请拷贝默认配置文件(比如config.yaml)修改后再同步配置到docker-compose.yaml如下
``` ```
@ -217,6 +217,7 @@ PaoPao主要由以下优秀的开源项目/工具构建
- paopao-network - paopao-network
.... ....
``` ```
***注意:默认提供的 docker-compose.yaml 仅仅用于搭建本机开发调试环境paopao-ce/phpMysqlAdmin 默认只能本机访问,如果需要产品部署供外网访问,请自行修改配置参数或使用其他方式部署。***
### API 文档 ### API 文档
构建时将 `docs` 添加到TAGS中: 构建时将 `docs` 添加到TAGS中:

@ -12,8 +12,9 @@ Server: # 服务设置
ReadTimeout: 60 ReadTimeout: 60
WriteTimeout: 60 WriteTimeout: 60
Features: Features:
Default: ["Base", "MySQL", "Option", "MinIO", "LoggerFile"] Default: ["Base", "MySQL", "Option", "LocalOSS", "LoggerFile"]
Develop: ["Base", "MySQL", "Option", "Sms", "AliOSS", "LoggerZinc"] Develop: ["Base", "MySQL", "Option", "Sms", "AliOSS", "LoggerZinc"]
Demo: ["Base", "MySQL", "Option", "Sms", "MinIO", "LoggerZinc"]
Slim: ["Base", "Sqlite3", "LocalOSS", "LoggerFile"] Slim: ["Base", "Sqlite3", "LocalOSS", "LoggerFile"]
Base: ["Zinc", "Redis", "Alipay",] Base: ["Zinc", "Redis", "Alipay",]
Option: ["SimpleCacheIndex"] Option: ["SimpleCacheIndex"]

@ -8,7 +8,7 @@ services:
MYSQL_DATABASE: paopao MYSQL_DATABASE: paopao
MYSQL_USER: paopao MYSQL_USER: paopao
MYSQL_PASSWORD: paopao MYSQL_PASSWORD: paopao
MYSQL_RANDOM_ROOT_PASSWORD: "yes" MYSQL_RANDOM_ROOT_PASSWORD: yes
volumes: volumes:
- ./scripts/paopao-mysql.sql:/docker-entrypoint-initdb.d/paopao.sql - ./scripts/paopao-mysql.sql:/docker-entrypoint-initdb.d/paopao.sql
- ./data/mysql/data:/var/lib/mysql - ./data/mysql/data:/var/lib/mysql
@ -25,21 +25,6 @@ services:
networks: networks:
- paopao-network - paopao-network
minio:
image: bitnami/minio:latest
restart: always
environment:
MINIO_ROOT_USER: minio-root-user
MINIO_ROOT_PASSWORD: minio-root-password
MINIO_DEFAULT_BUCKETS: paopao:public
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9001:9001
volumes:
- ./data/minio/data:/data
networks:
- paopao-network
zinc: zinc:
image: public.ecr.aws/prabhat/zinc:latest image: public.ecr.aws/prabhat/zinc:latest
user: root user: root
@ -54,6 +39,19 @@ services:
DATA_PATH: /data DATA_PATH: /data
networks: networks:
- paopao-network - paopao-network
phpmyadmin:
image: phpmyadmin:5.2
depends_on:
- db
ports:
- 127.0.0.1:8080:80
environment:
- PMA_HOST=db
- PMA_USER=paopao
- PMA_PASSWORD=paopao
networks:
- paopao-network
backend: backend:
build: build:
@ -63,7 +61,6 @@ services:
- db - db
- redis - redis
- zinc - zinc
- minio
# modify below to reflect your custom configure # modify below to reflect your custom configure
volumes: volumes:
- ./config.yaml.sample:/app/paopao-ce/config.yaml - ./config.yaml.sample:/app/paopao-ce/config.yaml

Loading…
Cancel
Save