-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-part1.yml
More file actions
91 lines (81 loc) · 2.46 KB
/
Copy pathdocker-compose-part1.yml
File metadata and controls
91 lines (81 loc) · 2.46 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
90
91
version: '3.8'
services:
mock-server:
container_name: mock-server
image: mockserver/mockserver:7.2.0
environment:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dmockserver.watchInitializationJson=true -Dmockserver.logLevel=OFF
TZ: "Europe/Kiev"
ports:
- "1080:1080"
mariadb:
image: mariadb:10.10 #mysql:8.0.21
container_name: mariadb
volumes:
- ./configs/maria-db/01-mariadb-schema.sql:/docker-entrypoint-initdb.d/01-dump.sql
environment:
TZ: "Europe/Kiev"
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: MARIA_SCHEMA
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: minio
hostname: 'minio'
ports:
- "9000:9000" # MinIO API port
- "9001:9001" # MinIO Console port
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
command: 'server /data --console-address ":9001"'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 3
restart: unless-stopped
mailpit:
image: axllent/mailpit:v1.29.6
container_name: mailpit
restart: unless-stopped
ports:
- "8025:8025" # for UI/API
- "1025:1025" # for SMTP
- "1110:1110" # for POP3
environment:
- MP_MAX_MESSAGES=5000
- MP_ENABLE_CHAOS=true # for negative tests
# Allow authentication over unencrypted connections (standard for dev)
- MP_SMTP_AUTH_ALLOW_INSECURE=true
# Disable authentication
# - MP_SMTP_AUTH_ACCEPT_ANY=true
# Define allowed credentials (format "user:pass", space-separated for multiples)
- MP_SMTP_AUTH=user:password123 dev:secret
# - MP_POP3_LISTEN="0.0.0.0:1110"
autotest-example:
container_name: autotest-example
image: gradle:8.14.2-jdk17
working_dir: /app
environment:
- TZ=Europe/Kiev
- JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
volumes:
- ${CI_PROJECT_DIR}:/app
depends_on:
minio:
condition: service_healthy
mock-server:
condition: service_started
mailpit:
condition: service_started
mariadb:
condition: service_healthy
command: sh -c "gradle clean :java-test-part1:${TAG} -DbugreaperEnv=ci"