-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (64 loc) · 1.35 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
# docker-compose.yml
version: "3.8"
services:
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "8080:8080"
depends_on:
- mysql
- rabbitmq
- redis
mysql:
container_name: mysql
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
restart: always
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15672:15672"
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
volumes:
- redis-data:/data
# - ./redis.conf:/usr/local/etc/redis/redis.conf
# elasticsearch:
# container_name: elasticsearch
# image: elasticsearch:8.11.1
# restart: always
# environment:
# - discovery.type=single-node
# ports:
# - "9200:9200"
# - "9300:9300"
# volumes:
# - es-data:/usr/share/elasticsearch/data
volumes:
mysql-data:
rabbitmq-data:
redis-data:
es-data: