-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.72 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
version: '3.6'
volumes:
bt-bundler-gems:
bt-db-data:
bt-elasticsearch:
bt-redis:
x-env-info: &env-info
env_file:
- './.env.dev'
x-app-shared: &app-shared
<<: *env-info
image: better-together/better-together-rails:dev
volumes:
- .:/bt
# - ../pundit-resources:/pundit-resources
- ../community-engine-rails:/community-engine
- bt-bundler-gems:/usr/local/bundle/
depends_on:
- db
- redis
services:
app: &app
<<: *app-shared
container_name: better-together-app
build: # "context" and "dockerfile" fields have to be under "build"
context: .
dockerfile: ./Dockerfile.dev
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3001 -b '0.0.0.0'"
ports:
- "3001:3001"
db:
<<: *env-info
container_name: better-together-db
image: postgis/postgis:latest
volumes:
- bt-db-data:/var/lib/postgresql/data
ports:
- "5435:5432"
elasticsearch:
container_name: better-together-elasticsearch
image: elasticsearch:7.17.23
environment:
- node.name=elasticsearch
- cluster.name=better-together-es
- discovery.seed_hosts=elasticsearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9202:9200
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- bt-elasticsearch:/usr/share/elasticsearch/data
sidekiq:
<<: *app-shared
container_name: better-together-sidekiq
command: bundle exec sidekiq -C config/sidekiq.yml
depends_on:
- app
redis:
image: 'redis:7.2-alpine'
container_name: better-together-redis
command: redis-server
volumes:
- bt-redis:/data