-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·73 lines (66 loc) · 1.51 KB
/
docker-compose.yaml
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
version: '3.8'
services:
random_postgres_db:
image: postgres:16.2
container_name: random_postgres_db
hostname: random_postgres_db
restart: always
env_file:
- .env
ports:
- 5432:5432
volumes:
- postgres_volume:/var/lib/postgresql/data
random_mysql_db:
image: mysql:8.3.0
container_name: random_mysql_db
hostname: random_mysql_db
restart: always
env_file:
- .env
ports:
- 3306:3306
volumes:
- mysql_volume:/var/lib/mysql
random_mongo_db:
image: mongo:7.0.8
container_name: random_mongo_db
hostname: random_mongo_db
restart: always
env_file:
- .env
ports:
- 27017:27017
volumes:
- mongo_volume:/data/configdb
- mongo_volume:/data/db
random_redis:
image: redis:7.2.4
container_name: random_redis
hostname: random_redis
restart: always
env_file:
- .env
ports:
- 6379:6379
volumes:
- redis_volume:/data
- ./redis.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf
random_rabbitmq:
image: rabbitmq:3.13.1
hostname: websocket_rabbitmq
container_name: random_rabbitmq
restart: always
env_file: ./.env
ports:
- 5672:5672
volumes:
- rabbitmq_volume:/var/lib/rabbitmq/
- rabbitmq_volume:/var/log/rabbitmq
volumes:
mongo_volume:
postgres_volume:
mysql_volume:
redis_volume:
rabbitmq_volume: