1 Star 0 Fork 0

MatumbaMan/libraries.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3.0'
volumes:
postgres-data:
driver: local
redis-data:
driver: local
elasticsearch-data:
driver: local
services:
postgres:
image: postgres:9.6.3
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=not-a-secret
- POSTGRES_USER=librariesio
elasticsearch:
image: elasticsearch:2.4.5
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
command: -Daction.auto_create_index=true
redis:
image: redis:3.2.9
volumes:
- redis-data:/var/lib/redis
command: redis-server --appendonly yes
sidekiq: &app_base
build:
context: .
image: librariesio/libraries.io
environment:
- DATABASE_URL=postgresql://librariesio:not-a-secret@postgres/librariesio
- REDISCLOUD_URL=redis://redis:6379/1
- ELASTICSEARCH_CLUSTER_URL=elasticsearch:9200
volumes:
- .:/libraries.io
depends_on:
- postgres
- elasticsearch
- redis
command: bundle exec sidekiq -C config/sidekiq.yml
web:
<<: *app_base
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server --port 3000 --binding '0.0.0.0'"
ports:
- "3000:3000"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/houkinglong/libraries.io.git
git@gitee.com:houkinglong/libraries.io.git
houkinglong
libraries.io
libraries.io
main

搜索帮助