-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.45 KB
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
version: '3'
services:
##Go_app##
go_app:
build: ./go_app
command: ./app
ports:
- "8000:8000"
depends_on:
- redis
env_file:
- .env
##Rails_app##
rails_app:
build: ./rails_app
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- ./rails_app:/app
ports:
- "3000:3000"
depends_on:
- mysql
- elasticsearch
- redis
env_file:
- .env
##Sidekiq##
sidekiq:
build: ./rails_app
command: bundle exec sidekiq -q default -q chats -q messages
volumes:
- ./rails_app:/app
depends_on:
- mysql
- redis
env_file:
- .env
##MySQL##
mysql:
image: 'mysql:8'
container_name: 'mysql'
ports:
- '3306:3306'
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${MYSQL_TIMEZONE}
##Redis##
redis:
image: 'redis:6'
container_name: 'redis'
ports:
- "6379:6379"
#Elasticsearch##
elasticsearch:
image: 'elasticsearch:7.10.1'
environment:
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"