-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
110 lines (103 loc) · 2.46 KB
/
docker-compose.test.yml
File metadata and controls
110 lines (103 loc) · 2.46 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
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
105
106
107
108
109
110
services:
postgres:
container_name: interapp-postgres-test
image: postgres:16-alpine
restart: on-failure
ports:
- 2345:2345
command: postgres -p 2345
env_file:
- ./interapp-backend/tests/config/.env.docker
networks:
- interapp-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -p 2345"]
interval: 2s
timeout: 2s
retries: 5
start_period: 60s
scheduler:
container_name: interapp-scheduler-test
restart: on-failure
build:
context: ./interapp-backend
dockerfile: scheduler/prod.Dockerfile
env_file:
- ./interapp-backend/tests/config/.env.docker
networks:
- interapp-network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
redis:
container_name: interapp-redis-test
image: redis:alpine
command: redis-server --port 3456
restart: on-failure
env_file:
- ./interapp-backend/tests/config/.env.docker
ports:
- 3456:3456
networks:
- interapp-network
healthcheck:
test: [ "CMD-SHELL", "redis-cli -p 3456 ping" ]
interval: 2s
timeout: 2s
retries: 7
start_period: 60s
minio:
container_name: interapp-minio-test
image: minio/minio
restart: on-failure
command: minio server /data
env_file:
- ./interapp-backend/tests/config/.env.docker
ports:
- 9000:9000
- 9001:9001
networks:
- interapp-network
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 2s
timeout: 2s
retries: 5
start_period: 60s
depends_on:
postgres:
condition: service_healthy
backend:
container_name: interapp-backend-test
restart: on-failure
build:
context: ./interapp-backend/
dockerfile: tests/config/test.Dockerfile
env_file:
- ./interapp-backend/tests/config/.env.docker
environment:
- APP_VERSION=${APP_VERSION}
ports:
- 1234:1234
networks:
- interapp-network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
develop:
watch:
- path: ./interapp-backend/api
action: sync
target: /app/api
- path: ./interapp-backend/db
action: sync
target: /app/db
networks:
interapp-network:
driver: bridge