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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Armature Development Environment
# =================================
# Lightweight stack for local development
#
# Services:
# - PostgreSQL
# - Redis
# - MailHog (email testing)
# - Adminer (database UI)
# - RedisInsight (Redis UI)
#
# Usage:
# docker compose up -d
# Adminer: http://localhost:8080
# MailHog: http://localhost:8025
# RedisInsight: http://localhost:8001
version: "3.8"
services:
# ============================================
# PostgreSQL
# ============================================
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: armature
POSTGRES_PASSWORD: armature
POSTGRES_DB: armature_dev
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d:ro
ports:
- "5432:5432"
healthcheck:
test:
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# ============================================
# Redis
# ============================================
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "6379:6379"
healthcheck:
test:
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# ============================================
# MailHog - Email Testing
# ============================================
mailhog:
image: mailhog/mailhog:latest
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
restart: unless-stopped
# ============================================
# Adminer - Database Admin UI
# ============================================
adminer:
image: adminer:latest
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DESIGN: dracula
depends_on:
- postgres
restart: unless-stopped
# ============================================
# RedisInsight - Redis GUI
# ============================================
redisinsight:
image: redislabs/redisinsight:latest
ports:
- "8001:8001"
volumes:
- redisinsight_data:/db
depends_on:
- redis
restart: unless-stopped
# ============================================
# LocalStack - AWS Services Emulation
# ============================================
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # External services
environment:
- SERVICES=s3,sqs,sns,dynamodb,ses
- DEBUG=0
- DATA_DIR=/var/lib/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- localstack_data:/var/lib/localstack
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
# ============================================
# MinIO - S3 Compatible Storage (Alternative)
# ============================================
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000" # API
- "9001:9001" # Console
volumes:
- minio_data:/data
healthcheck:
test:
interval: 30s
timeout: 20s
retries: 3
restart: unless-stopped
# ============================================
# pgAdmin - PostgreSQL Admin (Optional)
# ============================================
pgadmin:
image: dpage/pgadmin4:latest
profiles: # Only starts with --profile full
environment:
PGADMIN_DEFAULT_EMAIL: admin@localhost
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
ports:
- "5050:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
depends_on:
- postgres
restart: unless-stopped
volumes:
postgres_data:
redis_data:
redisinsight_data:
localstack_data:
minio_data:
pgadmin_data: