forked from ledermann/docker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
67 lines (61 loc) · 1.48 KB
/
docker-compose.test.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
version: '3.4'
services:
db:
image: postgres:alpine
environment:
- POSTGRES_PASSWORD
volumes:
- db-data:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
volumes:
- es-data:/usr/share/elasticsearch/data
memcached:
image: memcached:1.5-alpine
redis:
image: redis:4.0-alpine
selenium:
image: selenium/standalone-chrome
ports:
- 4444:4444
- 5900:5900
app:
image: dockerrails_app_test
build:
context: .
args:
- ADDITIONAL_PACKAGES=nodejs-current
- EXECJS_RUNTIME=Node
- BUNDLE_WITHOUT=production
- RAILS_ENV=test
environment:
ELASTICSEARCH_HOST: elasticsearch
REDIS_SIDEKIQ_URL: redis://redis:6379/0
REDIS_CABLE_URL: redis://redis:6379/1
MEMCACHED_HOST: memcached
SELENIUM_REMOTE_HOST: selenium
RAILS_ENV: test
DB_HOST: db
POSTGRES_PASSWORD: duubidoo
SECRET_KEY_BASE: we-dont-need-a-secret-here
DB_USER: postgres
DB_PASSWORD: duubidoo
APP_ADMIN_EMAIL: [email protected]
APP_ADMIN_PASSWORD: secret
APP_EMAIL: [email protected]
APP_HOST: example.org
AWS_ACCESS_KEY_ID: my-access-key
AWS_SECRET_ACCESS_KEY: my-secret
AWS_BUCKET: my-bucket
AWS_REGION: eu-central-1
ports:
- 3000
links:
- elasticsearch
- db
- redis
- memcached
- selenium
volumes:
db-data:
es-data: