-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
54 lines (47 loc) · 1.2 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
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_METADATA_DB_HOST: postgres
TG_TARGET_DB_TRUST_SERVER_CERTIFICATE: yes
TG_EXPORT_TO_OBSERVABILITY_VERIFY_SSL: no
TG_DOCKER_RELEASE_CHECK_ENABLED: yes
services:
engine:
image: datakitchen/dataops-testgen:v2
container_name: testgen
environment: *common-variables
volumes:
- testgen_data:/var/lib/testgen
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=${TESTGEN_USERNAME}
- POSTGRES_PASSWORD=${TESTGEN_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TESTGEN_USERNAME}"]
interval: 8s
timeout: 5s
retries: 3
networks:
- datakitchen
volumes:
postgres_data:
testgen_data:
networks:
datakitchen:
name: datakitchen-network
external: true