-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 1.95 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
66
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
teq:
container_name: mysql
image: mysql:8.0.21
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_PASS}
ports:
- ${DB_PORT}:3306
volumes:
- example:/var/lib/mysql
command:
[
"mysqld",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password"
]
teq_test:
container_name: mysql_test
platform: linux/x86_64
image: mysql:8.0.21
environment:
MYSQL_DATABASE: ${DB_TEST_NAME}
MYSQL_USER: ${DB_TEST_USERNAME}
MYSQL_PASSWORD: ${DB_TEST_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_TEST_PASSWORD}
ports:
- ${DB_TEST_PORT}:3306
volumes:
- example_test:/var/lib/mysql
command:
[
"mysqld",
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password"
]
redis:
container_name: redis
image: redis:latest
restart: always
ports:
- ${REDIS_PORT}:6379
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- ./cachedata/:/data
command: redis-server /usr/local/etc/redis/redis.conf
redis_test:
container_name: redis_test
image: redis:latest
restart: always
ports:
- ${REDIS_TEST_PORT}:6379
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- ./cachedata/:/data
command: redis-server /usr/local/etc/redis/redis.conf
rabbitmd:
container_name: rabbitmd
image: rabbitmq:latest
restart: always
environment:
RABBITMQ_DEFAULT_USER: $RABBITMQ_USERNAME # Set your desired username
RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASSOWRD # Set your desired password
ports:
- ${RABBITMQ_PORT}:5672
volumes:
example:
example_test: