-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
52 lines (49 loc) · 1.12 KB
/
compose.yaml
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
version: "1.0"
services:
web:
container_name: web
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- .:/app
environment:
RAILS_ENV: development
DATABASE_HOST: db
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL}
depends_on:
- db
- elasticsearch
stdin_open: true
tty: true
db:
image: mysql:8.0
container_name: db
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: ${ROOT_DB_PASSWORD}
MYSQL_DATABASE: library_management_system_development
volumes:
- db_data:/var/lib/mysql
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.0
container_name: elasticsearch
hostname: elasticsearch.local
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
volumes:
db_data: