-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (66 loc) · 1.37 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
version: '3'
services:
solr:
image: umbra_solr:dev
ports:
- "127.0.0.1:8983:8983"
volumes:
- ./snapshots:/snapshots
solr_test:
image: umbra_solr:dev
ports:
- "127.0.0.1:8984:8983"
volumes:
- ./snapshots:/snapshots
web:
build: .
env_file:
- .env
command: >
bash -c "
RAILS_ENV=test rails s -b 0.0.0.0 -p 3001 --pid `pwd`/tmp/pids/server-test.pid &
# Run web server
rails s -b 0.0.0.0 -p 3000"
volumes:
- .:/app
ports:
- "127.0.0.1:3000:3000"
- "127.0.0.1:3001:3001"
links:
- solr
- solr_test
- db
- redis
depends_on:
- solr
db:
image: library/mysql:5.7
volumes:
- umbra-db-data:/var/lib/mysql
- ./docker/data:/docker-entrypoint-initdb.d
env_file:
- .env
sidekiq:
build: .
command: bundle exec sidekiq -r /app
volumes:
- .:/app
links:
- redis
env_file:
- .env
redis:
image: redis:latest
redis_cache:
image: redis:4.0.10
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./docker/redis-cache.conf:/usr/local/etc/redis/redis.conf
selenium:
image: selenium/standalone-chrome-debug:latest
ports: ['127.0.0.1:4444:4444', '127.0.0.1:5900:5900']
stdin_open: true
tty: true
volumes:
umbra-db-data:
driver: local