forked from genesyslab/asciinema.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 997 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '2'
services:
postgres:
image: postgres
# storage:
# image: busybox
# volumes:
# - /var/lib/docker/registry
# command: 'true'
redis:
image: redis
ports:
- 6379
dbsetup:
image: asciinema/asciinema.org
links:
- postgres
command: 'bundle exec rake db:setup'
environment:
DATABASE_URL: postgresql://postgres:mypass@postgres/asciinema
sidekiq:
links:
- postgres
- redis
image: asciinema/asciinema.org
depends_on:
- dbsetup
command: 'ruby start_sidekiq.rb'
environment:
DATABASE_URL: postgresql://postgres:mypass@postgres/asciinema
REDIS_URL: redis://redis:6379
asciinema:
depends_on:
- dbsetup
image: asciinema/asciinema.org
links:
- postgres
- redis
ports:
- 3000:3000
environment:
DATABASE_URL: postgresql://postgres:mypass@postgres/asciinema
REDIS_URL: redis://redis:6379
RAILS_ENV: development