-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
35 lines (32 loc) · 1000 Bytes
/
docker-compose-test.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
services:
postgres_starter_kit_api_test: # Needs updating
image: postgres:alpine
container_name: postgres_starter_kit_api_test # Needs updating
restart: 'no'
env_file:
- .env.test
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- '5444:5432' # Different port to avoid conflict with the development environment
volumes:
- postgres_data_test:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $POSTGRES_USER']
interval: 10s
timeout: 5s
retries: 5
redis_starter_kit_api_test: # Needs updating
image: redis:alpine
container_name: redis_starter_kit_api_test # Needs updating
ports:
- '6380:6379' # Different port to avoid conflict with the development environment
volumes:
- redis_data_test:/data
networks:
default:
name: starter_kit_api_test # Needs updating
volumes:
postgres_data_test:
redis_data_test: