Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (58 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (58 loc) · 1.99 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
54
55
56
57
58
59
60
61
62
63
64
65
name: testgen
x-common-variables: &common-variables
TESTGEN_USERNAME: ${TESTGEN_USERNAME}
TESTGEN_PASSWORD: ${TESTGEN_PASSWORD}
TG_DECRYPT_SALT: ${TG_DECRYPT_SALT}
TG_DECRYPT_PASSWORD: ${TG_DECRYPT_PASSWORD}
TG_JWT_HASHING_KEY: ${TG_JWT_HASHING_KEY}
TG_METADATA_DB_HOST: postgres
TG_METADATA_DB_USER: ${TG_METADATA_DB_USER}
TG_METADATA_DB_PASSWORD: ${TG_METADATA_DB_PASSWORD}
TG_TARGET_DB_TRUST_SERVER_CERTIFICATE: yes
TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL: no
services:
engine:
image: datakitchen/dataops-testgen:v2
# Must exceed TG_JOB_SHUTDOWN_TIMEOUT (default 60s), or docker kills the scheduler
# mid-wait and running jobs are cut instead of stopping at a checkpoint.
stop_grace_period: 90s
container_name: testgen
environment: *common-variables
volumes:
- testgen_data:/var/lib/testgen
# Data files TestGen reads in place, for a Files connection. Uncomment and point the left
# side at the directory on this machine that holds them; the right side is the Base Path to
# enter on the connection. Read-only, because TestGen never writes to target data. The files
# have to be readable by the container's user, which is the unprivileged `testgen` account
# rather than root -- `docker compose exec engine id` prints the uid to grant.
# - /data:/data:ro
ports:
- 8501:8501
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- postgres
networks:
- datakitchen
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${TG_METADATA_DB_USER}
- POSTGRES_PASSWORD=${TG_METADATA_DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TG_METADATA_DB_USER}"]
interval: 8s
timeout: 5s
retries: 3
networks:
- datakitchen
volumes:
postgres_data:
testgen_data:
networks:
datakitchen:
name: datakitchen-network
external: true