Add asciinema-org template (#141)

This commit is contained in:
Lobsiinvok
2016-05-17 00:03:04 +08:00
committed by Bill Maxwell
parent f6e820ac2d
commit 356bb12dc2
5 changed files with 91 additions and 0 deletions
@@ -0,0 +1,39 @@
asciinema-org:
image: 'asciinema/asciinema.org:latest'
links:
- postgres
- redis
restart: always
ports:
- ${port}:3000
environment:
HOST: ${host}:${port}
DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema
REDIS_URL: redis://redis:6379
RAILS_ENV: development
postgres:
image: 'postgres:latest'
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${postgres_password}
container_name: postgres
redis:
image: 'redis:latest'
ports:
- 6379:6379
container_name: redis
sidekiq:
image: 'asciinema/asciinema.org:latest'
links:
- postgres
- redis
command: 'ruby start_sidekiq.rb'
environment:
HOST: ${host}:${port}
DATABASE_URL: postgresql://postgres:${postgres_password}@postgres/asciinema
REDIS_URL: redis://redis:6379
RAILS_ENV: development