-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.4 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
services:
db:
image: postgres:16-alpine
command: >
-c max_connections=1000
-c fsync=off
-c synchronous_commit=off
-c full_page_writes=off
-c random_page_cost=1.1
container_name: osb_database
ports:
- "5435:5435"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGPORT: 5435
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -p 5435"]
interval: 2s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
container_name: osb_redis
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "no", "--save", ""]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 3s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
target: build-run
cache_from:
- type=gha
cache_to:
- type=gha,mode=max
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
environment:
ROBOCHIMP_DATABASE_URL: postgresql://postgres:postgres@db:5435/robochimp_integration_test?connection_limit=10&pool_timeout=0&schema=public
DATABASE_URL: postgresql://postgres:postgres@db:5435/osb_integration_test?connection_limit=10&pool_timeout=0&schema=public
REDIS_HOST: redis
REDIS_PORT: 6379