代码拉取完成,页面将自动刷新
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"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。