-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.test.yml
104 lines (96 loc) · 2.53 KB
/
docker-compose.test.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
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
101
102
103
104
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
services:
db:
extends:
file: ./docker-compose.base.yml
service: db
env_file: ./.env.docker-compose.test
volumes:
- postgres_test_data:/var/lib/postgresql/data
networks:
- app-network
profiles:
- test
- integration
ports:
- 54323:5432
minio:
extends:
file: ./docker-compose.base.yml
service: minio
env_file: ./.env.docker-compose.test
volumes:
- minio_data:/data
networks:
- app-network
profiles:
- test
- integration
minio-init:
depends_on:
minio:
condition: service_healthy
env_file: ./.env.docker-compose.test
extends:
file: ./docker-compose.base.yml
service: minio-init
networks:
- app-network
profiles:
- test
- integration
inbucket:
extends:
file: ./docker-compose.base.yml
service: inbucket
env_file: ./.env.docker-compose.test
networks:
- app-network
profiles:
- test
- integration
jobs:
container_name: jobs
image: ${JOBS_IMAGE}
platform: linux/amd64
env_file: .env.docker-compose.test
environment:
- OTEL_SERVICE_NAME=jobs.jobs
networks:
- app-network
depends_on:
- db
profiles:
- integration
integration-tests:
image: ${INTEGRATION_TESTS_IMAGE}
env_file: ./.env.docker-compose.test
environment:
- PORT=3000
- CI=true
depends_on:
jobs:
# TODO: add a healthcheck for jobs
condition: service_started
db:
condition: service_started
inbucket:
condition: service_started
platform: linux/amd64
healthcheck:
test: ["CMD-SHELL", "curl http://integration-tests:3000/api/health"]
interval: 10s
timeout: 5s
retries: 5
profiles:
- integration
ports:
- 3000:3000
networks:
- app-network
volumes:
minio_data:
postgres_test_data:
driver: local
networks:
app-network: