-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
45 lines (39 loc) · 991 Bytes
/
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
version: '3.7'
services:
mysql:
image: mysql:latest
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_ROOT_PASSWORD: ""
volumes:
- "./docker-entrypoint-initdb.d.mysql:/docker-entrypoint-initdb.d"
healthcheck:
test: ["CMD-SHELL", "mysqladmin -h localhost status"]
interval: 10s
timeout: 5s
retries: 5
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- "./docker-entrypoint-initdb.d.psql:/docker-entrypoint-initdb.d"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U datalake_analytics_admin -d datalake_analytics"]
interval: 10s
timeout: 5s
retries: 5
test:
build: .
volumes:
- .:/migrations:z
command:
- tox
working_dir: /migrations
environment:
PRE_COMMIT_HOME: ./.pre-commit
depends_on:
mysql:
condition: "service_healthy"
postgres:
condition: "service_healthy"