forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (78 loc) · 1.84 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
postgres:
image: postgres:9.3
redis:
image: redis:2.6
# To add cassandra
# - Uncomment this configuration
# - Uncomment cassandra line in 'web' below
# - Uncomment configuration in config/cassandra.yml
# - See config/cassandra.yml.example for further setup instructions
# cassandra:
# image: cassandra:2.2
# environment:
# CASSANDRA_START_RPC: 'true'
consul:
image: gliderlabs/consul-server:0.6
command: -node canvas-consul -bootstrap
environment:
GOMAXPROCS: "2"
selenium:
build: ./docker-compose/seleniumff
ports:
- 5900:5900
environment:
VIRTUAL_HOST: selenium.docker
kinesis:
image: instructure/kinesalite
environment:
VIRTUAL_HOST: kinesis.docker
VIRTUAL_PORT: 4567
web: &WEB
build: ./docker-compose
volumes:
- "canvas-gems:/home/docker/.gem/ruby/2.1.0"
- ".:/usr/src/app"
links:
- consul
- postgres
- redis
# - cassandra
- kinesis
- mailcatcher
environment:
RACK_ENV: development
VIRTUAL_HOST: .canvas.docker
jobs:
<<: *WEB
command: bundle exec script/delayed_job run
guard:
<<: *WEB
command: bundle exec guard -i
mailcatcher:
image: instructure/mailcatcher
environment:
VIRTUAL_HOST: mail.canvas.docker
VIRTUAL_PORT: 8080
# Uncomment this entry to run qunit tests built from webpack
# js-tests:
# build: ./docker-compose/karma
# volumes:
# - ".:/app"
# environment:
# NODE_ENV: CI
# Uncomment this entry to run qunit tests Headlessly
#phantomjs-tests:
# build: ./docker-compose/phantomjs-karma
# volumes:
# - ".:/app"
# environment:
# NODE_ENV: CI
# VIRTUAL_HOST: phantom.docker
# Uncomment below to run the LTI test tool for integration tests
# lti-test-tool:
# image: instructure/lti_tool_provider_example
# command: bundle exec rails s -p 8080
# ports:
# - "8080:8080"
# environment:
# VIRTUAL_HOST: lti.docker