-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.features.yml
58 lines (54 loc) · 1.4 KB
/
docker-compose.features.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
version: '3'
services:
redis:
image: redis
juniorjobs:
image: howtohireme/juniorjobs.ru
environment:
- FEATURES=true
- REDIS_HOST=redis
- SECRET_KEY_BASE=NGQ2ZGM3MjkxYzM5YTg1ZDg1NTFlYThiNzAxYWI1NjMyZTU2ODk0OGMzNzYyYjJhMGM5Y2U0YmE2YjE3ZGExMTkxODFjNGE4NTgzZTM2MjA5YjNmN2JmOGEyMjk2MmYyODA2OGIzM2VkZmZjNmRlMWNjYjgxMWZmZjIyMWQyZTYK
- RAILS_SERVE_STATIC_FILES=true
# HINT: uncomment this variable to debug build
#- RAILS_LOG_TO_STDOUT=true
ports:
- "3000:5000"
depends_on:
- postgres
- redis
command: >
/bin/bash -c "
while ! nc -z postgres 5432;
do
echo Waiting for PG;
sleep 1;
done;
rake db:migrate;
rm -f /app/tmp/pids/server.pid;
foreman start;
"
postgres:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_DB=juniorjobs_production
features:
image: howtohireme/juniorjobs-features
depends_on:
- juniorjobs
environment:
- CUCUMBER_HOST=http://juniorjobs:5000
- CUCUMBER_ENV=features
- POSTGRES_HOST=postgres
- POSTGRES_DB=juniorjobs_production
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
command: >
/bin/bash -c "
while ! nc -z juniorjobs 5000;
do
echo Waiting for app;
sleep 1;
done;
cucumber;
"