chore: add Docker Compose dev stack (postgres 17, redis 7, meilisearch 1.11)

This commit is contained in:
2026-05-27 14:15:50 +05:30
parent 8c51cf9ea8
commit 1b10dda42e
2 changed files with 59 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# Database
DATABASE_URL=postgresql://tower:tower_dev@localhost:5432/tower_dev
# Redis
REDIS_URL=redis://localhost:6379
# API
API_PORT=3001
# Auth
JWT_SECRET=change_me_in_production_must_be_32_chars_min
# Meilisearch
MEILI_URL=http://localhost:7700
MEILI_MASTER_KEY=tower_meili_dev_key
# Logging
NODE_ENV=development
LOG_LEVEL=debug
+40
View File
@@ -0,0 +1,40 @@
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: tower
POSTGRES_PASSWORD: tower_dev
POSTGRES_DB: tower_dev
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U tower -d tower_dev']
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- '6379:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 5s
retries: 5
meilisearch:
image: getmeili/meilisearch:v1.11
ports:
- '7700:7700'
environment:
MEILI_NO_ANALYTICS: 'true'
MEILI_MASTER_KEY: tower_meili_dev_key
volumes:
- meilisearch_data:/meili_data
volumes:
postgres_data:
meilisearch_data: