-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (99 loc) · 2.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
104 lines (99 loc) · 2.75 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
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
# MariaDB (MySQL-compatible) Database Service
mariadb:
image: mariadb:latest
container_name: skyledger-mariadb
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: ${MYSQL_PASSWORD:-rootpassword}
MARIADB_DATABASE: ${MYSQL_DATABASE:-skyledger_db}
ports:
- "${MYSQL_PORT:-3306}:3306"
volumes:
- mariadb_data:/var/lib/mysql
- ./database/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# phpMyAdmin Web Interface
phpmyadmin:
image: phpmyadmin:latest
container_name: skyledger-phpmyadmin
restart: unless-stopped
depends_on:
- mariadb
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: ${MYSQL_PASSWORD:-rootpassword}
UPLOAD_LIMIT: 128M
ports:
- "8081:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 15s
timeout: 5s
retries: 5
# MongoDB Database Service for Audit & Compliance Logging
mongodb:
image: mongo:latest
container_name: skyledger-mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-admin}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-mongopassword}
MONGO_INITDB_DATABASE: ${MONGO_DATABASE:-skyledger}
ports:
- "${MONGO_PORT:-27018}:27017"
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
# MinIO Object Storage
minio:
image: minio/minio:latest
container_name: skyledger-minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
# MinIO Setup (Creates buckets and sets policy)
minio-setup:
image: minio/mc:latest
container_name: skyledger-minio-setup
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 5;
/usr/bin/mc config host add myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb myminio/skyledger-deals --ignore-existing;
/usr/bin/mc anonymous set public myminio/skyledger-deals;
exit 0;
"
volumes:
mariadb_data:
driver: local
mongodb_data:
driver: local
minio_data:
driver: local