-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
54 lines (46 loc) · 1.02 KB
/
docker-compose.override.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
services:
db:
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${AUTH_POSTGRES_USER} -d ${AUTH_POSTGRES_DB}"]
redis:
ports:
- "6379:6379"
elasticsearch:
scale: 0
etl:
scale: 0
elasticsearch-index-creator:
scale: 0
app_server:
container_name: app_server
image: app_server
restart: no
expose:
- "9090"
build:
context: .
dockerfile: ./auth_service/Dockerfile
env_file:
- .env
depends_on:
venv_builder:
condition: service_completed_successfully
redis:
condition: service_healthy
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:9090/api/v1/healthcheck || exit 1"]
functional_tests:
container_name: functional_tests
image: functional_tests
build:
context: .
dockerfile: tests/auth_service/Dockerfile
env_file:
- .env
depends_on:
app_server:
condition: service_started