-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.infra-arm64.yml
106 lines (101 loc) · 2.48 KB
/
docker-compose.infra-arm64.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
services:
mysql:
hostname: mysql
image: mysql:8.0.39
platform: linux/x86_64
restart: always
command:
[
"--default-authentication-plugin=mysql_native_password",
"--collation-server=utf8mb4_bin",
]
environment:
MYSQL_ROOT_PASSWORD: userfeedback
MYSQL_DATABASE: userfeedback
MYSQL_USER: userfeedback
MYSQL_PASSWORD: userfeedback
TZ: UTC
ports:
- 13306:3306
volumes:
- ./volumes/mysql:/var/lib/mysql
networks:
- app_network
# optional for e2e test
mysql-for-e2e:
hostname: mysql
image: mysql:8.0.39
platform: linux/x86_64
restart: always
command:
[
"--default-authentication-plugin=mysql_native_password",
"--collation-server=utf8mb4_bin",
]
environment:
MYSQL_ROOT_PASSWORD: userfeedback
MYSQL_DATABASE: e2e
MYSQL_USER: userfeedback
MYSQL_PASSWORD: userfeedback
TZ: UTC
ports:
- 13307:3306
volumes:
- ./volumes/mysql-for-e2e:/var/lib/mysql-for-e2e
networks:
- app_network
# optional for email verification on creating user
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
- 5080:80
- 25:25
- 143:143
volumes:
- ./volumes/smtp4dev:/smtp4dev
networks:
- app_network
# optional for better performance on searching feedbacks
opensearch-node:
image: opensearchproject/opensearch:2.16.0
restart: always
container_name: opensearch-node
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- plugins.security.disabled=true
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=UserFeedback123!@#
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ./volumes/opensearch:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- app_network
# optional for opensearch
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.16.0
restart: always
container_name: opensearch-dashboards
ports:
- 5601:5601
environment:
- 'OPENSEARCH_HOSTS=["http://opensearch-node:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
depends_on:
- opensearch-node
networks:
- app_network
networks:
app_network: