-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
85 lines (80 loc) · 2.21 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
playground-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/adventureworks && minio server /export --console-address :9001'
healthcheck:
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 10s
timeout: 5s
retries: 2
playground-db:
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
playground-dbs-filler:
environment:
PGPASSWORD: "example"
TMP_DIR: "/tmp/schema"
ORIGINAL_DB_NAME: "original"
TRANSFORMED_DB_NAME: "transformed"
DBHOST: "db"
DBUSER: "postgres"
DBPASSWORD: "example"
build:
context: docker/playground/filldb
depends_on:
playground-db:
condition: service_healthy
greenmask:
volumes:
- ./playground:/var/lib/playground
image: "greenmask/greenmask:latest"
working_dir: /var/lib/playground
environment:
PGPASSWORD: example
ORIGINAL_DB_NAME: "original"
TRANSFORMED_DB_NAME: "transformed"
DATABASE_HOST: "playground-db"
depends_on:
playground-dbs-filler:
condition: service_completed_successfully
playground-storage:
condition: service_healthy
entrypoint: "/var/lib/playground/run.sh"
greenmask-from-source:
working_dir: /var/lib/playground
volumes:
- ./playground:/var/lib/playground
build:
dockerfile: docker/greenmask/Dockerfile
context: ./
environment:
PGPASSWORD: example
ORIGINAL_DB_NAME: "original"
TRANSFORMED_DB_NAME: "transformed"
DATABASE_HOST: "playground-db"
depends_on:
playground-dbs-filler:
condition: service_completed_successfully
playground-storage:
condition: service_healthy
entrypoint: "/var/lib/playground/run.sh"