-
Notifications
You must be signed in to change notification settings - Fork 77
/
docker-compose-local.yml
52 lines (47 loc) · 1.12 KB
/
docker-compose-local.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
version: "3.8"
services:
redis:
image: redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
postgresql:
image: postgres:12
ports:
- "5432:5432"
environment:
# default values for development purposes only
- POSTGRES_USER=xcmetrics-dev
- POSTGRES_PASSWORD=xcmetrics-dev
- POSTGRES_DB=xcmetrics-dev
- PGDATA=/data/postgres-xcmetrics
volumes:
- postgres:/data/postgres-xcmetrics
healthcheck:
test: pg_isready -U xcmetrics-dev -d xcmetrics-dev
interval: 10s
timeout: 3s
retries: 3
xcmetrics:
image: spotify/xcmetrics:latest
depends_on:
redis:
condition: service_healthy
postgresql:
condition: service_healthy
ports:
- "8080:8080"
environment:
- XCMETRICS_START_JOBS_SAME_INSTANCE=1
- XCMETRICS_USE_ASYNC_LOG_PROCESSING=1
- XCMETRICS_REDACT_USER_DATA=1
- XCMETRICS_USE_GCS_REPOSITORY=0
- LOG_LEVEL=info
- REDIS_HOST=redis
- DB_HOST=postgresql
volumes:
postgres: