-
-
Notifications
You must be signed in to change notification settings - Fork 243
/
docker-compose.yml
49 lines (46 loc) · 1.07 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
version: '2.1'
services:
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root#
- MYSQL_DATABASE=pop_test
- MYSQL_USER=pop
- MYSQL_PASSWORD=pop#
ports:
- "3307:3306"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
start_period: 3s
postgres:
image: postgres:10
environment:
- POSTGRES_DB=pop_test
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres#
- POSTGRES_DB=postgres
ports:
- "5433:5432"
healthcheck:
test: ["CMD", "pg_isready"]
interval: 5s
timeout: 5s
retries: 10
start_period: 3s
cockroach:
image: cockroachdb/cockroach:latest-v21.1
ports:
- "26258:26257"
- "8081:8080"
#volumes:
#- ./_vol/cockroach:/cockroach/cockroach-data
command: start-single-node --insecure
healthcheck:
test: ["CMD", "curl", "http://localhost:8080/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 3s