-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
59 lines (52 loc) · 1.37 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
59 lines (52 loc) · 1.37 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
56
57
58
59
# Test environment override for docker-compose.yml
# Note: version field is obsolete in Docker Compose v2+
# Usage: docker compose -f docker-compose.yml -f docker-compose.test.yml up
services:
postgres:
environment:
POSTGRES_USER: accellens_test
POSTGRES_PASSWORD: accellens_test
POSTGRES_DB: accellens_test
ports:
- '5434:5432'
volumes:
- postgres_test_data:/var/lib/postgresql/data
command: postgres -c log_statement=all -c log_destination=stderr
redis:
ports:
- '6381:6379'
command: redis-server --appendonly no --requirepass accellens_redis_test
volumes:
- redis_test_data:/data
rabbitmq:
environment:
RABBITMQ_DEFAULT_USER: accellens_test
RABBITMQ_DEFAULT_PASS: accellens_rabbitmq_test
ports:
- '5673:5672'
- '15673:15672'
volumes:
- rabbitmq_test_data:/var/lib/rabbitmq
minio:
environment:
MINIO_ROOT_USER: accellens_test
MINIO_ROOT_PASSWORD: accellens_minio_test
ports:
- '9020:9000'
- '9021:9001'
volumes:
- minio_test_data:/data
# Test services can be added here if needed
# For example, a test runner service
volumes:
postgres_test_data:
driver: local
redis_test_data:
driver: local
rabbitmq_test_data:
driver: local
minio_test_data:
driver: local
networks:
accellens-network:
driver: bridge