-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.tests.yml
More file actions
42 lines (39 loc) · 982 Bytes
/
docker-compose.tests.yml
File metadata and controls
42 lines (39 loc) · 982 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
38
39
40
41
42
name: observatory-tests
services:
postgres:
image: postgres:17
restart: unless-stopped
ports:
- 5231:5432
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s
timeout: 5s
retries: 15
start_period: 10s
redis:
image: redis:8.2.2
restart: unless-stopped
ports:
- 5232:6379
volumes:
- redis:/data
networks:
- container_network
healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
interval: 10s
timeout: 5s
retries: 5
volumes:
redis:
postgres_data:
networks:
container_network:
driver: bridge