forked from vernemq/vernemq
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.test.yml
79 lines (78 loc) · 1.7 KB
/
docker-compose.test.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
version: '3'
services:
postgres:
image: postgres:9.2-alpine
container_name: postgres
environment:
POSTGRES_DB: vmq_test_database
POSTGRES_USER: vmq_test_user
POSTGRES_PASSWORD: "vmq_test_password"
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: none
mysql:
image: mysql:5.6
container_name: mysql
environment:
MYSQL_DATABASE: "vmq_test_database"
MYSQL_USER: "vmq_test_user"
MYSQL_PASSWORD: "vmq_test_password"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: none
redis:
image: redis
container_name: redis
logging:
driver: none
memcached:
image: memcached
container_name: memcached
logging:
driver: none
mongo:
image: mongo
container_name: mongo
logging:
driver: none
redis-sentinel:
image: bitnami/redis-sentinel
container_name: redis-sentinel
depends_on:
- redis
logging:
driver: none
vernemq:
container_name: vmq-test
build:
context: .
dockerfile: docker/test.Dockerfile
depends_on:
- postgres
- mysql
- redis
- memcached
- mongo
- redis-sentinel
command: ./docker/run-tests.sh
volumes:
- ${PWD}:/vernemq
- build-data:/vernemq/_build
- log-data:/vernemq/log
- plts-data:/vernemq/plts
- plts_base-data:/vernemq/plts_base
volumes:
build-data:
log-data:
plts-data:
plts_base-data: