-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
91 lines (81 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
91
version: '2.0'
services:
db:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- db:/var/lib/mysql
elasticsearch:
image: elasticsearch:1.7.5
platform: linux/amd64
command: elasticsearch -Des.network.host=0.0.0.0
volumes:
- elastic:/usr/share/elasticsearch/data
redis:
image: redis:4.0-alpine
platform: linux/amd64
volumes:
- redis:/data
smtp:
image: 'djfarrelly/maildev:latest'
command: 'bin/maildev --web 3080 --smtp 1025 --incoming-user smtp --incoming-pass smtp'
ports:
- '3080:3080'
web: &rails
build:
context: .
dockerfile: Dockerfile-dev
platform: linux/amd64
environment:
RAILS_ENV:
ELASTICSEARCH_URL: 'elasticsearch:9200'
REDIS_URL: 'redis://redis:6379'
DATABASE_HOST: 'db'
SELENIUM_URL: 'http://selenium:4444/'
SETTINGS__SMTP__ADDRESS: smtp
SETTINGS__SMTP__PASSWORD: smtp
SETTINGS__SMTP__PORT: 1025
SETTINGS__SMTP__USER_NAME: smtp
pid: host
volumes:
- .:/app
- bundle:/usr/local/bundle
depends_on:
- db
- elasticsearch
- redis
- smtp
- selenium
- resque
- resque_scheduler
command: rails server -b 0.0.0.0
ports:
- 3000:3000
selenium:
image: selenium/standalone-firefox:78.0
shm_size: 2g
volumes:
- .:/app
resque:
<<: *rails
command: bundle exec rake resque:work TERM_CHILD=1 FORK_PER_JOB=false
ports: []
depends_on: []
resque_scheduler:
<<: *rails
command: bundle exec rake resque:scheduler
ports: []
depends_on: []
jasmine:
<<: *rails
command: bundle exec rake jasmine
ports:
- 8888:8888
depends_on: []
volumes:
db:
elastic:
redis:
bundle: