forked from parseablehq/parseable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yaml
100 lines (96 loc) · 2.35 KB
/
docker-compose-test.yaml
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
99
100
version: "3.7"
networks:
parseable-internal:
services:
panorama:
image: ghcr.io/aldrinjenson/panorama:main
networks:
- parseable-internal
depends_on:
- parseable
environment:
- PANORAMA_ADDRESS=http://panorama:5000
- PANORAMA_ADMIN_USERNAME=pano_admin
- PANORAMA_ADMIN_PASSWORD=pano_admin
- PARSEABLE_USERNAME=parseableadmin # todo: make as env var and use in other jobs
- PARSEABLE_PASSWORD=parseableadmin
- PARSEABLE_BASE_URL=http://parseable:8000
deploy:
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 32
minio:
image: minio/minio:RELEASE.2023-02-10T18-48-39Z
entrypoint:
- sh
- -euc
- |
mkdir -p /tmp/minio/parseable && \
minio server /tmp/minio
environment:
- MINIO_ROOT_USER=parseable
- MINIO_ROOT_PASSWORD=supersecret
- MINIO_UPDATE=off
ports:
- 9000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 15s
timeout: 20s
retries: 5
networks:
- parseable-internal
parseable:
build:
context: .
dockerfile: Dockerfile
command: ["parseable", "s3-store"]
ports:
- 8000
environment:
- P_S3_URL=http://minio:9000
- P_S3_ACCESS_KEY=parseable
- P_S3_SECRET_KEY=supersecret
- P_S3_REGION=us-east-1
- P_S3_BUCKET=parseable
- P_STAGING_DIR=/tmp/data
- P_USERNAME=parseableadmin
- P_PASSWORD=parseableadmin
- P_CHECK_UPDATE=false
networks:
- parseable-internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/liveness"]
interval: 15s
timeout: 20s
retries: 5
depends_on:
- minio
deploy:
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 3
quest:
image: ghcr.io/aldrinjenson/quest:main
command: [
"load",
"http://parseable:8000",
"parseableadmin",
"parseableadmin",
"20",
"http://panorama:5000", # todo: make these into env var
pano_admin,
pano_admin,
]
networks:
- parseable-internal
depends_on:
- parseable
- panorama
deploy:
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 3