-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (114 loc) · 3.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
121 lines (114 loc) · 3.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
version: '3.8'
services:
# PostgreSQL Database (Unified - for CMS API, NextAuth, and all services)
# Using pgvector image for AI/RAG vector similarity search support
db:
container_name: revampit_db
image: pgvector/pgvector:pg15
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
POSTGRES_DB: ${DB_NAME:-revampit_cms}
POSTGRES_INITDB_ARGS: "--encoding=UTF-8"
volumes:
- revampit_db_data:/var/lib/postgresql/data
- ./postgres-init:/docker-entrypoint-initdb.d
ports:
- "${DB_PORT:-5433}:5432"
networks:
- revampit_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
# Meilisearch for fast product search
meilisearch:
container_name: revampit_meilisearch
image: getmeili/meilisearch:v1.11
restart: unless-stopped
environment:
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-masterKey_change_in_production}
MEILI_ENV: development
MEILI_NO_ANALYTICS: "true"
volumes:
- meilisearch_data:/meili_data
ports:
- "${MEILI_PORT:-7700}:7700"
networks:
- revampit_network
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:7700/health"]
interval: 30s
timeout: 10s
retries: 3
# Voice Transcription Service (faster-whisper)
# Speech-to-text for product data entry via voice
transcription:
container_name: revampit_transcription
build:
context: ./services/transcription
dockerfile: Dockerfile
restart: unless-stopped
environment:
WHISPER_MODEL: ${WHISPER_MODEL:-base}
PORT: 5111
ports:
- "${TRANSCRIPTION_PORT:-5111}:5111"
networks:
- revampit_network
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5111/health')"]
interval: 30s
timeout: 10s
retries: 3
# Mailpit - Local email testing (catches all emails, sends nothing)
# Web UI: http://localhost:8025
# SMTP: localhost:1025
mailpit:
container_name: revampit_mailpit
image: axllent/mailpit:latest
restart: unless-stopped
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP
networks:
- revampit_network
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
# Listmonk - Open Source Email & Newsletter Service
listmonk:
container_name: revampit_listmonk
image: listmonk/listmonk:latest
restart: unless-stopped
ports:
- "${LISTMONK_PORT:-9090}:9000"
environment:
- TZ=Europe/Zurich
volumes:
- ./listmonk/config.toml:/listmonk/config.toml
- listmonk_uploads:/listmonk/uploads
networks:
- revampit_network
depends_on:
db:
condition: service_healthy
command: ["./listmonk", "--config", "/listmonk/config.toml"]
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:9000/health"]
interval: 30s
timeout: 10s
retries: 5
volumes:
revampit_db_data:
driver: local
meilisearch_data:
driver: local
listmonk_uploads:
driver: local
networks:
revampit_network:
driver: bridge
name: revampit_network