forked from riZZZhik/belinsky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yaml
49 lines (39 loc) · 1.12 KB
/
docker-compose.test.yaml
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
services:
app_test:
build:
context: app/
target: test
command: pytest -W ignore::DeprecationWarning
restart: "no"
environment:
BELINSKY_SECRET_KEY: ${BELINSKY_SECRET_KEY}
BELINSKY_GOOGLE_CLOUD_CREDENTIALS: ${BELINSKY_GOOGLE_CLOUD_CREDENTIALS}
BELINSKY_POSTGRES_USER: belinsky
BELINSKY_POSTGRES_PASSWORD: belinsky_db_password
BELINSKY_POSTGRES_HOST: belinsky_database_test
BELINSKY_POSTGRES_PORT: 5432
BELINSKY_POSTGRES_DB: belinsky_db
GRPC_POLL_STRATEGY: poll
depends_on:
database_test:
condition: service_healthy
database_test:
image: postgres
container_name: belinsky_database_test
restart: unless-stopped
environment:
POSTGRES_USER: belinsky
POSTGRES_PASSWORD: belinsky_db_password
POSTGRES_DB: belinsky_db
ports:
- "5432:5432"
volumes:
- belinsky_db_test_volume:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U belinsky -d belinsky_db -q"]
interval: 2s
timeout: 2s
retries: 10
volumes:
belinsky_db_test_volume:
driver: local