-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
89 lines (78 loc) · 1.82 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
version: '2.4'
services:
base: &base
build:
context: .
dockerfile: Dockerfile-dev
env_file: docker-dev.env
depends_on:
- db
working_dir: /src
volumes:
- .:/src
- bundle:/usr/local/bundle
- ./tmp/keys:/etc/ssh/keys
- ./tmp/.ssh:/home/cdx-sync/.ssh
- ./tmp/sync:/home/cdx-sync/tmp/sync
command: /bin/true
web:
<<: *base
pid: host
# tty: true
ports:
- "3000:3000"
depends_on:
- db
- elasticsearch
- redis
command: /bin/sh -c './bin/rails s -b 0.0.0.0'
extra_hosts:
- "host.docker.internal:host-gateway"
selenium:
build:
context: .
dockerfile: Dockerfile.selenium
command: ['/usr/bin/geckodriver', '--host', '0.0.0.0']
working_dir: /src
volumes:
- .:/src # we mount the source to be able to attach fixture files
scale: 2
db:
platform: linux/amd64
image: mysql:5.7
command: --innodb-flush-method=nosync --innodb-flush-log-at-trx-commit=0 --innodb-flush-log-at-timeout=2700 --sync-binlog=0
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- db:/var/lib/mysql
elasticsearch:
image: elasticsearch:1.7.5
command: elasticsearch -Des.cluster.name=cdx
volumes:
- es01:/usr/share/elasticsearch/data
redis:
image: redis:6.2-alpine
sshd:
platform: linux/amd64
image: instedd/cdx-sync-sshd
environment:
SYNC_UID: 9999
volumes:
- ./tmp/keys:/etc/ssh/keys
- ./tmp/.ssh:/home/cdx-sync/.ssh
- ./tmp/sync:/home/cdx-sync/tmp/sync
csv_watch:
<<: *base
command: /bin/sh -c 'rake csv:watch'
ftp_monitor:
<<: *base
command: /bin/sh -c 'rake ftp:start'
sidekiq:
<<: *base
depends_on:
- redis
command: /bin/sh -c 'bundle exec sidekiq'
volumes:
db:
bundle:
es01: