-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
87 lines (80 loc) · 1.71 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
version: '3.7'
services:
postgres:
image: 'postgres:9.6.11-alpine'
environment:
POSTGRES_USER: 'limestone'
POSTGRES_PASSWORD: 'yourpassword'
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: 'redis:4.0.11-alpine'
command: ["redis-server", "--requirepass", "yourpassword", "--appendonly", "yes"]
ports:
- '6379:6379'
volumes:
- redis:/data
sysctls:
# https://github.com/docker-library/redis/issues/35
net.core.somaxconn: '511'
web:
depends_on:
- 'postgres'
- 'redis'
- 'elasticsearch'
build: .
image: 'limestone-rails'
tty: true
stdin_open: true
ports:
- '3000:3000'
volumes:
- .:/app
# don't mount tmp directory
- /app/tmp
env_file:
- '.env'
sidekiq:
depends_on:
- 'postgres'
- 'redis'
build: .
image: 'limestone-rails'
command: sidekiq -C config/sidekiq.yml.erb
volumes:
- .:/app
# don't mount tmp directory
- /app/tmp
env_file:
- '.env'
solargraph:
depends_on:
- web
build: .
image: 'limestone-rails'
ports:
- 7658:7658
command: solargraph socket -h 0.0.0.0
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
- "logger.org.elasticsearch=error"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
volumes:
redis:
postgres:
web:
esdata: