-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
37 lines (35 loc) · 888 Bytes
/
docker-compose.test.yaml
File metadata and controls
37 lines (35 loc) · 888 Bytes
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
services:
test:
build:
context: .
dockerfile: app/Dockerfile.dev
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/linkly_test
- REDIS_HOST=redis
- REDIS_PORT=6379
- TEST_MODE=True
- SECRET_KEY=test-secret-key-for-testing-only-not-for-production
- DEBUG=true
- ENVIRONMENT=test
db:
image: postgres:13
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=linkly_test
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
command: redis-server --loglevel warning