-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
55 lines (50 loc) · 1.17 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
version: '3'
services:
api:
build: .
container_name: api
ports:
- 3000:3000
env_file:
- .env
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
depends_on:
- mysql
- elastic_search
- redis_cache
volumes:
- .:/app
mysql:
image: mysql:5.7.26
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- 8002:3306
volumes:
- mysql_db_volume:/var/lib/mysql
redis_cache:
image: redis:latest
container_name: redis_cache
ports:
- 6379:6379
volumes:
- redis_cache_volume:/var/lib/redis
elastic_search:
image: elasticsearch:7.16.1
container_name: elastic_search
ports:
- 8004:9200
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.watcher.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
volumes:
- elastic_search_volume:/var/lib/elastic_search
volumes:
mysql_db_volume: {}
redis_cache_volume: {}
elastic_search_volume: {}