-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathci-tests.docker-compose.yml
More file actions
76 lines (70 loc) · 1.7 KB
/
ci-tests.docker-compose.yml
File metadata and controls
76 lines (70 loc) · 1.7 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
services:
repo:
image: ${AR_REPO}:test-${VERSION}
tty: true
depends_on:
- minio
- postgres
- redis
- timescale
volumes:
- ./:/app
- ./tools/devenv/config/test.yml:/config/codecov.yml
networks:
- codecov
environment:
# Note: COVERAGE_CORE=sysmon removed due to Python 3.13 incompatibility with branch coverage
# https://github.com/nedbat/coveragepy/issues/1665#issuecomment-1937075835
- RUN_ENV=DEV
- CODECOV_YML=/config/codecov.yml
env_file:
- .testenv
entrypoint:
- /bin/sh # We don't really need to start the service for tests
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: 1024M
networks:
- codecov
timescale:
image: timescale/timescaledb:latest-pg14
environment:
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=password
volumes:
- ./docker/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
networks:
- codecov
redis:
image: redis:6-alpine
networks:
- codecov
minio:
image: minio/minio:latest
command: server --address ":9002" /export
environment:
- MINIO_ACCESS_KEY=codecov-default-key
- MINIO_SECRET_KEY=codecov-default-secret
volumes:
- type: tmpfs
target: /export
tmpfs:
size: 256M
networks:
- codecov
mailhog:
image: mailhog/mailhog:latest
networks:
- codecov
networks:
codecov:
driver: bridge