-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 967 Bytes
/
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
services:
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: <%= ENV['DATABASE_PASSWORD'] %>
volumes:
- db_data:/var/lib/mysql
ports:
- "3307:3306"
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bin/rails server -b 0.0.0.0"
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
environment:
RAILS_ENV: development
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.1
restart: always
environment:
- ELASTIC_USERNAME=ENV['ELASTIC_USERNAME']
- ELASTIC_PASSWORD=ENV['ELASTIC_PASSWORD']
- ELASTICSEARCH_PORT_NUMBER=9200
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- .:/myapp
volumes:
db_data: