-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (78 loc) · 1.57 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
version: '3.8'
services:
mysql:
image: mysql:latest
container_name: insta-task-mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "rails-api"
volumes:
- v-mysql:/var/lib/mysql
ports:
- 3311:3306
networks:
- network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.4
container_name: insta-task-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- v-elasticsearch:/usr/share/elasticsearch/data
networks:
- network
redis:
image: redis:latest
container_name: insta-task-redis
volumes:
- v-redis:/data
networks:
- network
ror:
build: ./ror
container_name: insta-task-ror
image: insta-task-ror-image
volumes:
- ./ror:/usr/src/app
env_file:
- ./ror/.env
entrypoint:
- ./run.sh
ports:
- 3000:3000
networks:
- network
depends_on:
- mysql
- elasticsearch
- redis
worker:
image: insta-task-ror-image
container_name: insta-task-worker
volumes:
- ./ror:/usr/src/app
env_file:
- ./ror/.env
command: sidekiq
networks:
- network
depends_on:
- mysql
- elasticsearch
- redis
- ror
nginx:
image: nginx:alpine
container_name: insta-task-nginx
ports:
- 4000:80
volumes:
- ./docs:/usr/share/nginx/html/docs
networks:
network:
volumes:
v-mysql:
v-elasticsearch:
v-redis: