forked from GreenmaskIO/greenmask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-integration.yml
166 lines (154 loc) · 3.73 KB
/
docker-compose-integration.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '3'
services:
storage:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
- "MINIO_ROOT_USER=Q3AM3UQ867SPQQA43P2F"
- "MINIO_ROOT_PASSWORD=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
entrypoint: sh
command: >
-c 'mkdir -p /export/testbucket
&& dd if=/dev/random count=10 > /export/testbucket/test.bin
&& minio server /export --console-address :9001'
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
start_period: 5s
interval: 10s
timeout: 5s
retries: 2
db-16:
volumes:
- "/var/lib/postgresql/data"
image: postgres:16
ports:
- "54316:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
db-15:
volumes:
- "/var/lib/postgresql/data"
image: postgres:15
ports:
- "54315:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
db-14:
volumes:
- "/var/lib/postgresql/data"
image: postgres:14
ports:
- "54314:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
db-13:
volumes:
- "/var/lib/postgresql/data"
image: postgres:13
ports:
- "54313:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
db-12:
volumes:
- "/var/lib/postgresql/data"
image: postgres:12
ports:
- "54312:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
db-11:
volumes:
- "/var/lib/postgresql/data"
image: postgres:11
ports:
- "54311:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
test-dbs-filler:
environment:
PGPASSWORD: "example"
FILE_DUMP: "demo-small-en.zip"
TMP_DIR: "/tmp/schema"
PG_VERSIONS_CHECK: "11,12,13,14,15,16"
# volumes:
# - "/tmp/greenmask_tests:/tmp/schema"
build:
context: docker/integration/filldb
depends_on:
db-11:
condition: service_healthy
db-12:
condition: service_healthy
db-13:
condition: service_healthy
db-14:
condition: service_healthy
db-15:
condition: service_healthy
db-16:
condition: service_healthy
greenmask:
volumes:
- "/tmp"
environment:
PG_VERSIONS_CHECK: "11,12,13,14,15,16"
PG_USER: postgres
PG_PASSWORD: example
PG_DATABASE: demo
PG_PORT: 5432
PG_HOST_TEMPLATE: db-<version>
TEMP_DIR: "/tmp"
GREENMASK_BIN_PATH: "/var/lib/greenmask/"
STORAGE_S3_ENDPOINT: "http://storage:9000"
STORAGE_S3_BUCKET: "testbucket"
STORAGE_S3_REGION: "us-east-1"
STORAGE_S3_ACCESS_KEY_ID: "Q3AM3UQ867SPQQA43P2F"
STORAGE_S3_SECRET_KEY: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
STORAGE_S3_PREFIX: "11"
build:
dockerfile: docker/integration/tests/Dockerfile
context: ./
depends_on:
test-dbs-filler:
condition: service_completed_successfully
storage:
condition: service_healthy