-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (48 loc) · 1.24 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
services:
db:
image: mysql:latest
container_name: vgmq-api-db
ports:
- '3306:3306'
volumes:
- ./.data/db:/var/lib/mysql
user: mysql
environment:
MYSQL_ROOT_PASSWORD: yoyo
MYSQL_DATABASE: vgmq
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: vgmq-api-phpmyadmin
ports:
- '8080:80'
depends_on:
- db
environment:
UPLOAD_LIMIT: 300M
redis:
image: redis:alpine
container_name: vgmq-api-redis
ports:
- '6379:6379'
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.1
build: .
container_name: vgmq-elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
# can't use this on ubunu ??
# volumes:
# - ./.data/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300