-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.32 KB
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
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"
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
image: postgres:16
ports:
- "54316:5432"
restart: always
environment:
POSTGRES_PASSWORD: example
healthcheck:
test: [ "CMD", "psql", "-U", "postgres" ]
interval: 5s
timeout: 1s
retries: 3
greenmask:
volumes:
- ./:/var/lib/playground
build:
dockerfile: Dockerfile
working_dir: /var/lib/playground
environment:
PGPASSWORD: example
ORIGINAL_DB_NAME: "original"
TRANSFORMED_DB_NAME: "transformed"
DATABASE_HOST: "playground-db"
depends_on:
playground-storage:
condition: service_healthy
playground-db:
condition: service_healthy
entrypoint: "bash"