-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
68 lines (61 loc) · 1.65 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
version: '3'
services:
tomato:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- postgres-initdb:/db/postgres/
- mysql-initdb:/db/mysql/
- /tmp/:/tmp/
environment:
PSQL_DATASOURCE: "postgres://tomato:potato@postgres:5432/tomato?sslmode=disable"
MYSQL_DATASOURCE: "root:potato@tcp(mysql:3306)/tomato"
RABBITMQ_DATASOURCE: "amqp://guest:guest@rabbit:5672"
NSQ_DATASOURCE: "nsqd:4150"
WIREMOCK_BASE_URL: "http://wiremock:8080"
HTTP_CLIENT_BASE_URL: "http://wiremock:8080"
REDIS_DATASOURCE: "redis://redis:6379/0"
rabbit:
image: rabbitmq:3.6.1-management
expose:
- "5672"
postgres:
image: postgres:9.5
expose:
- "5432"
environment:
POSTGRES_USER: tomato
POSTGRES_PASSWORD: potato
POSTGRES_DB: tomato
volumes:
- postgres-initdb:/docker-entrypoint-initdb.d/
mysql:
image: mysql:5.6.34
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=potato
- MYSQL_DATABASE=tomato
volumes:
- mysql-initdb:/docker-entrypoint-initdb.d/
nsqd:
image: nsqio/nsq
expose:
- "4150"
entrypoint: ["/nsqd"]
wiremock:
image: rodolpheche/wiremock
ports:
- "8080"
expose:
- "8080"
redis:
image: redis:5.0.6-alpine
ports:
- "6379"
expose:
- "6379"
volumes:
postgres-initdb: {}
mysql-initdb: {}