-
Notifications
You must be signed in to change notification settings - Fork 264
Expand file tree
/
Copy pathdocker-compose-tests.yml
More file actions
89 lines (84 loc) · 2.26 KB
/
docker-compose-tests.yml
File metadata and controls
89 lines (84 loc) · 2.26 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
web:
build:
context: .
dockerfile: ./docker/tests/Dockerfile
container_name: backend_theater_test
command: [ "pytest", "-c", "/usr/src/config/pytest.ini",
"-m", "e2e", "--maxfail=5", "--disable-warnings", "-v", "--tb=short"]
environment:
- PYTHONPATH=/usr/src/fastapi
- ENVIRONMENT=testing
- EMAIL_HOST=mailhog_theater_test
- EMAIL_PORT=1025
- EMAIL_HOST_USER=testuser@mate.com
- EMAIL_HOST_PASSWORD=test_password
- EMAIL_USE_TLS=False
- MAILHOG_API_PORT=8025
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=some_password
- MINIO_HOST=minio-theater-test
- MINIO_PORT=9000
- MINIO_STORAGE=theater-storage
depends_on:
mailhog:
condition: service_started
minio:
condition: service_healthy
volumes:
- ./src:/usr/src/fastapi
networks:
- theater_network_test
mailhog:
image: mailhog/mailhog
container_name: mailhog_theater_test
ports:
- "8025:8025"
- "1025:1025"
networks:
- theater_network_test
minio:
image: minio/minio:latest
container_name: minio-theater-test
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=some_password
- MINIO_HOST=minio-theater-test
- MINIO_PORT=9000
- MINIO_STORAGE=theater-storage
volumes:
- minio_data_test:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- theater_network_test
minio_mc:
build:
context: .
dockerfile: docker/minio_mc/Dockerfile
container_name: minio_mc_theater_test
command: [ "/bin/sh", "-c", "/commands/setup_minio.sh" ]
depends_on:
minio:
condition: service_healthy
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=some_password
- MINIO_HOST=minio-theater-test
- MINIO_PORT=9000
- MINIO_STORAGE=theater-storage
networks:
- theater_network_test
volumes:
minio_data_test:
driver: local
networks:
theater_network_test:
driver: bridge