-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
98 lines (91 loc) · 2.38 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
98 lines (91 loc) · 2.38 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
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
networks:
trustify:
volumes:
trustify-importer-data:
trustify-storage-data:
trustify-postgres-data:
services:
trustify-db:
image: ${POSTGRESQL_IMAGE}
volumes:
- trustify-postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: trustify
POSTGRES_DB: trustify
POSTGRES_HOSTNAME: localhost
POSTGRES_PORT: 5432
networks:
- trustify
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d trustify" ]
interval: 10s
timeout: 5s
retries: 5
trustify-migrate:
image: ${TRUSTIFY_IMAGE}
environment:
TRUSTD_DB_HOST: trustify-db
entrypoint: /usr/local/bin/trustd
command: db migrate
networks:
- trustify
depends_on:
trustify-db:
condition: service_healthy
trustify-importer:
image: ${TRUSTIFY_IMAGE}
environment:
TRUSTD_DB_HOST: trustify-db
TRUSTD_DB_MAX_CONN: "30"
RUST_LOG: "error"
entrypoint: /usr/local/bin/trustd
command: importer --working-dir /data/workdir
volumes:
- trustify-importer-data:/data/workdir
networks:
- trustify
depends_on:
trustify-migrate:
condition: service_completed_successfully
trustify:
image: ${TRUSTIFY_IMAGE}
environment:
TRUSTD_DB_HOST: trustify-db
TRUSTD_DB_MAX_CONN: "50"
HTTP_SERVER_BIND_ADDR: "::"
AUTH_DISABLED: true
RUST_LOG: "error"
entrypoint: /usr/local/bin/trustd
command: api --sample-data
ports:
- "8080:8080"
volumes:
- trustify-storage-data:/opt/trustify/storage
networks:
- trustify
depends_on:
trustify-migrate:
condition: service_completed_successfully
trustify-ui:
image: ${TRUSTIFY_UI_IMAGE}
environment:
TRUSTIFY_API_URL: http://trustify:8080
AUTH_REQUIRED: false
ports:
- "8081:8080"
networks:
- trustify
depends_on:
trustify:
condition: service_started
playwright:
image: ${PLAYWRIGHT_IMAGE:?PLAYWRIGHT_IMAGE is required}:${PLAYWRIGHT_VERSION:?PLAYWRIGHT_VERSION is required}${UBUNTU_VERSION_ALIAS}
ports:
- "5000:5000"
network_mode: host
working_dir: ${PLAYWRIGHT_HOME:-/home/pwuser}
command:
- /bin/sh
- -c
- npx -y playwright@${PLAYWRIGHT_VERSION:?PLAYWRIGHT_VERSION is required} run-server --port ${PLAYWRIGHT_PORT:-5000}