2 Star 36 Fork 3

yadong.zhang / gitee-stargazers

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
docker-compose.yml 1.50 KB
Copy Edit Web IDE Raw Blame History
yadong.zhang authored 2021-03-26 12:01 . 修改docker容器编码
version: '3.3'
services:
app:
image: "justauth/gitee-stargazers:v1.11"
container_name: "gitee-stargazers"
volumes:
- /var/log/gitee-stargazers/:/usr/src/app/log/
- /var/gs/contributors/:/usr/src/gs/contributors/
environment:
LANG: C.UTF-8
# 是否为线上环境,字符串类型,当为 '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
# 存放贡献者头像文件的路径
CONTRIBUTORS_DIR: /usr/src/gs/contributors
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 to 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

113223 674803ea 1850385 170725 2838fb2a 1850385