-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.44 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
55
56
57
58
59
60
61
62
version: "3"
services:
worker:
image: ${WORKER_DOCKER_REPO}:${WORKER_DOCKER_VERSION}
depends_on:
- postgres
- redis
- timescale
- minio
volumes:
- ./:/app/apps/worker
- ./docker/test_codecov_config.yml:/config/codecov.yml
environment:
# Improves pytest-cov performance in python 3.12
# https://github.com/nedbat/coveragepy/issues/1665#issuecomment-1937075835
- COVERAGE_CORE=sysmon
env_file:
- .testenv
command:
- sleep
- infinity
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=password
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
tmpfs:
size: 2048M
timescale:
image: timescale/timescaledb-ha:pg14-latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=password
volumes:
- ./docker/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
minio:
image: minio/minio:latest
command: server /export
ports:
- "${MINIO_PORT:-9000}:9000"
environment:
- MINIO_ACCESS_KEY=codecov-default-key
- MINIO_SECRET_KEY=codecov-default-secret
volumes:
- type: tmpfs
target: /export
tmpfs:
size: 256M
redis:
image: redis:6-alpine
mailhog:
image: mailhog/mailhog:latest