-
Notifications
You must be signed in to change notification settings - Fork 3
/
dc-dev.utils.yml
87 lines (87 loc) · 1.57 KB
/
dc-dev.utils.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
# To make this file default docker-compose file run the following (or add ~/.bash_profile):
# export COMPOSE_FILE=dc-dev.utils.yml
server:
build: .
env_file:
- webapp.env
- db.env
volumes:
- .:/var/www/app
links:
- 'db:db.local'
- 'redis:redis.local'
db:
build: ./docker/builds/db
env_file:
- db.env
ports:
- "2222:22"
redis:
image: redis
shibconfig:
image: shibconfig
rproxy:
build: ./docker/builds/reverse_proxy
ports:
- "3000:443"
links:
- "server:protected.app"
volumes_from:
- shibconfig
rails:
image: dukeauthenticationservice_server
environment:
- REDIS_HOST=redis.local
- REDIS_PORT=6379
volumes_from:
- server
env_file:
- webapp.env
- db.env
links:
- 'db:db.local'
- redis:redis.local
entrypoint: ['rails']
rake:
image: dukeauthenticationservice_server
volumes_from:
- server
env_file:
- webapp.env
- db.env
links:
- 'db:db.local'
- redis:redis.local
entrypoint: ['rake']
consumer:
image: dukeauthenticationservice_server
env_file:
volumes_from:
- server
env_file:
- consumer.env
- webapp.env
- db.env
links:
- 'db:db.local'
entrypoint: ['rake']
command: consumer:create
rspec:
image: dukeauthenticationservice_server
environment:
- RAILS_ENV=test
env_file:
- webapp.env
- db.env
volumes_from:
- server
links:
- 'db:db.local'
- 'redis:redis.local'
entrypoint: ['rspec']
command: spec
bundle:
image: dukeauthenticationservice_server
volumes_from:
- server
entrypoint: ['bundle']