-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
229 lines (220 loc) · 6.28 KB
/
docker-compose.yml
File metadata and controls
229 lines (220 loc) · 6.28 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
services:
# Traefik Reverse Proxy with SSL
traefik:
image: traefik:v2.10
container_name: cloudfest-traefik
restart: unless-stopped
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--providers.file.directory=/etc/traefik/dynamic"
- "--providers.file.watch=true"
ports:
- "80:80"
- "443:443"
- "8090:8080" # Traefik dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/certs:/etc/traefik/certs:ro
- ./traefik/dynamic:/etc/traefik/dynamic:ro
networks:
- cloudfest-network
labels:
- "traefik.enable=true"
# AspireCloud PostgreSQL Database
aspirecloud-db:
image: postgres:16-alpine
container_name: cloudfest-aspirecloud-db
restart: unless-stopped
environment:
POSTGRES_DB: aspirecloud
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- aspirecloud_db_data:/var/lib/postgresql/data
- ./snapshots:/snapshots:ro
networks:
- cloudfest-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# AspireCloud Application
aspirecloud:
image: ghcr.io/aspirepress/aspirecloud:latest
container_name: cloudfest-aspirecloud
restart: unless-stopped
depends_on:
aspirecloud-db:
condition: service_healthy
environment:
APP_ENV: local
APP_DEBUG: true
APP_URL: http://localhost:8099
APP_KEY: base64:18keOV412ag8Yw3NdpWs2AMxL/f7W39nA+4rsv4ron8=
DB_CONNECTION: pgsql
DB_HOST: aspirecloud-db
DB_PORT: 5432
DB_DATABASE: aspirecloud
DB_USERNAME: postgres
DB_PASSWORD: password
CACHE_DRIVER: redis
REDIS_HOST: redis
REDIS_PORT: 6379
HTTP_CLIENT_TIMEOUT: 120
HTTP_CLIENT_CONNECT_TIMEOUT: 30
# Node/Yarn configuration
NODE_ENV: development
ports:
- "8099:80"
volumes:
- ./aspirecloud:/app
networks:
- cloudfest-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.aspirecloud.rule=Host(`api.aspiredev.local`)"
- "traefik.http.routers.aspirecloud.entrypoints=websecure"
- "traefik.http.routers.aspirecloud.tls=true"
- "traefik.http.services.aspirecloud.loadbalancer.server.port=80"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/ || exit 1"]
interval: 30s
timeout: 30s
retries: 3
# CVE Labeller PostgreSQL Database
cve-labeller-db:
image: postgres:16-alpine
container_name: cloudfest-cve-labeller-db
restart: unless-stopped
environment:
POSTGRES_DB: cve_labeller
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5433:5432"
volumes:
- cve_labeller_db_data:/var/lib/postgresql/data
networks:
- cloudfest-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
# CVE Labeller Application
cve-labeller:
image: webdevops/php-nginx:8.2-alpine
container_name: cloudfest-cve-labeller
restart: unless-stopped
depends_on:
cve-labeller-db:
condition: service_healthy
redis:
condition: service_healthy
environment:
APP_ENV: local
APP_DEBUG: true
APP_URL: http://localhost:8199
APP_KEY: base64:KRiGrL6HJxOWDCb7WFBGQ2jbZRmDCJGgAdt1lP02IUk=
DB_CONNECTION: pgsql
DB_HOST: cve-labeller-db
DB_PORT: 5432
DB_DATABASE: cve_labeller
DB_USERNAME: postgres
DB_PASSWORD: password
CACHE_DRIVER: redis
REDIS_HOST: redis
REDIS_PORT: 6379
SESSION_DRIVER: redis
QUEUE_CONNECTION: redis
# PHP Configuration
WEB_DOCUMENT_ROOT: /app/public
PHP_MEMORY_LIMIT: 512M
PHP_UPLOAD_MAX_FILESIZE: 64M
PHP_POST_MAX_SIZE: 64M
ports:
- "8199:80"
volumes:
- ./cve-labeller:/app
networks:
- cloudfest-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.cve-labeller.rule=Host(`api.cve-labeller.local`)"
- "traefik.http.routers.cve-labeller.entrypoints=websecure"
- "traefik.http.routers.cve-labeller.tls=true"
- "traefik.http.services.cve-labeller.loadbalancer.server.port=80"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/ || exit 1"]
interval: 30s
timeout: 30s
retries: 3
# Redis Cache (shared by AspireCloud and CVE Labeller)
redis:
image: redis:7-alpine
container_name: cloudfest-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
networks:
- cloudfest-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# Mailhog for Email Testing
mailhog:
image: mailhog/mailhog:latest
container_name: cloudfest-mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
networks:
- cloudfest-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailhog.rule=Host(`mail.aspiredev.local`)"
- "traefik.http.routers.mailhog.entrypoints=websecure"
- "traefik.http.routers.mailhog.tls=true"
- "traefik.http.services.mailhog.loadbalancer.server.port=8025"
# Adminer for Database Management
adminer:
image: adminer:latest
container_name: cloudfest-adminer
restart: unless-stopped
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: aspirecloud-db
ADMINER_DESIGN: pepa-linha
networks:
- cloudfest-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminer.rule=Host(`db.aspiredev.local`)"
- "traefik.http.routers.adminer.entrypoints=websecure"
- "traefik.http.routers.adminer.tls=true"
- "traefik.http.services.adminer.loadbalancer.server.port=8080"
networks:
cloudfest-network:
driver: bridge
name: cloudfest-network
volumes:
aspirecloud_db_data:
driver: local
cve_labeller_db_data:
driver: local
redis_data:
driver: local