This repository was archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (79 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
90 lines (79 loc) · 1.52 KB
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
version: '3.4'
services:
app: &app
build:
context: .
target: dev
depends_on:
- db
- mail
- cache
env_file: .docker/app.env
ports:
- 3000
volumes:
- ./:/app
- seed:/seed
worker:
<<: *app
command: [ rake, 'jobs:work' ]
depends_on:
- db
- mail
- cache
test:
build:
context: .
target: test
depends_on:
- db-test
env_file: .docker/app.env
environment:
RAILS_DB_NAME: hitobito_test
RAILS_DB_HOST: db-test
volumes:
- ./:/app
# Dependencies
mail:
build:
context: .
target: base
command: [ mailcatcher, -f, --ip, '0.0.0.0' ]
ports:
- 1080
cache:
image: memcached:1.5-alpine
command: [ memcached, -l, '0.0.0.0', -p, '11211' ]
sphinx:
image: macbre/sphinxsearch:3.1.1
depends_on:
- db
volumes:
- sphinx:/opt/sphinx/index
- ./.docker/sphinx.conf:/opt/sphinx/conf/sphinx.conf:ro
indexer:
image: macbre/sphinxsearch:3.1.1
command: [ indexer, --config, /opt/sphinx/conf/sphinx.conf, --all ]
depends_on:
- db
volumes:
- sphinx:/opt/sphinx/index
- ./.docker/sphinx.conf:/opt/sphinx/conf/sphinx.conf:ro
db:
image: mysql:5.6
command:
- --sort_buffer_size=2M
env_file: .docker/mysql.env
volumes:
- db:/var/lib/mysql
db-test:
image: mysql:5.6
command:
- --sort_buffer_size=2M
env_file: .docker/mysql.env
environment:
MYSQL_DATABASE: hitobito_test
volumes:
db:
sphinx:
seed: