2 Star 18 Fork 1

yadong.zhang / gitee-stargazers

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
docker-compose.yml 1.33 KB
Copy Edit Web IDE Raw Blame History
yadong.zhang authored 2021-02-15 10:38 . 添加 docker-compose.yml
version: '3.3'
services:
app:
image: "justauth/gitee-stargazers:v1.10"
container_name: "gitee-stargazers"
volumes:
- /var/log/gitee-stargazers/:/usr/src/app/log/
environment:
# 是否为线上环境,字符串类型,当为 'true' 时, 会将 console 日志写入文件
PROD: "true"
# 你的 Gitee 账号名
GITEE_USERNAME: "xx"
# 你的 Gitee 账号密码
GITEE_PASSWORD: "xx"
# 你的 Gitee OAuth 应用的 clientId
GITEE_CLIENT_ID: "xx"
# 你的 Gitee OAuth 应用的 clientSecret
GITEE_CLIENT_SECRET: "xx"
# redis 连接 host,默认 127.0.0.1
REDIS_HOST: 'redis'
# redis 端口,默认 6379
REDIS_PORT: 6379
# redis 密码,必须,此处的密码为下方 redis 容器启动时指定的密码(--requirepass)
REDIS_PASSWORD: "gs123456"
# redis 连接超时时间,单位秒
REDIS_CONNECT_TIMEOUT: 3
# redis 缓存过期时间,单位秒
REDIS_EXPIRE: 3600
# redis 数据库索引,默认 1
REDIS_DB_INDEX: 2
ports:
- "3000:3000"
depends_on:
- redis
links:
- redis
redis:
image: redis
container_name: "gs_redis"
command: redis-server --appendonly yes --requirepass gs123456
ports:
- "6379:6379"
volumes:
- /var/redis/:/data/

Comment ( 0 )

Sign in for post a comment

NodeJS
1
https://gitee.com/yadong.zhang/gitee-stargazers.git
git@gitee.com:yadong.zhang/gitee-stargazers.git
yadong.zhang
gitee-stargazers
gitee-stargazers
master

Search