fix(ops): align docker-compose.dev.yml with standardized services and naming

- Resolve git conflict markers and remove unused redisinsight service
- Rename mailhog container to acupedia-mailhog to prevent naming collisions
- Pin Redis image to redis:7-alpine matching stack configuration
- Keep MEDIA_PRESIGN_ENDPOINT environment override for VPS deployment
- Ensure relative build and volume contexts point to local workspace paths
This commit is contained in:
Urvish Prajapati 2026-09-17 15:08:35 +05:30
parent 06d1b6aba0
commit a800ba1894
1 changed files with 61 additions and 23 deletions

View File

@ -1,7 +1,10 @@
version: '3.8'
services:
# ============================================================
# 1. PostgreSQL Database
# ============================================================
postgres:
image: postgres:16-alpine
container_name: acupedia-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-acupedia_db}
@ -18,8 +21,13 @@ services:
retries: 20
networks:
- acupedia-net
# ============================================================
# 2. Redis Cache
# ============================================================
redis:
image: redis:8.10.1-alpine
image: redis:7-alpine
container_name: acupedia-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
@ -27,6 +35,10 @@ services:
- acupedia-redis-data:/data
networks:
- acupedia-net
# ============================================================
# 3. MinIO Object Storage
# ============================================================
minio:
image: minio/minio
container_name: acupedia-minio
@ -42,28 +54,26 @@ services:
- acupedia-minio-data:/data
networks:
- acupedia-net
# ============================================================
# 4. MailHog SMTP Server (Email testing)
# ============================================================
mailhog:
image: mailhog/mailhog:latest
container_name: panacea-mailhog
container_name: acupedia-mailhog
restart: unless-stopped
ports:
- "1025:1025" # SMTP port
- "8025:8025" # Web UI port
networks:
- acupedia-net
<<<<<<< Updated upstream
redisinsight:
image: redis/redisinsight:latest
container_name: redis-insight
restart: always
=======
# ============================================================
# 5. Acupedia Backend API (FastAPI)
# ============================================================
backend:
build:
context: ${ACUPEDIA_API_PATH:-../acupedia_api}
context: ${ACUPEDIA_API_PATH:-../../acupedia-api}
dockerfile: Dockerfile
container_name: acupedia-api
restart: unless-stopped
@ -106,28 +116,56 @@ services:
RAZORPAY_KEY_SECRET: ${RAZORPAY_KEY_SECRET:-vsB1RYs6J1S4EtK0u8zuZuaL}
RESEND_API_KEY: ${RESEND_API_KEY:-re_YHvSXRCz_LrQYzEYEDVwoRiAgfJRsH6ya}
ENVIRONMENT: ${ENVIRONMENT:-production}
>>>>>>> Stashed changes
ports:
- "5540:5540"
- "${BACKEND_PORT:-8000}:8000"
volumes:
- acupedia-redisinsight-data:/data
depends_on:
- redis
- ${CONTENT_PATH:-../../acupedia_content/acupedia-content}:/app/content:ro
networks:
- acupedia-net
acupedia-content:
image: gcr.io/google-containers/pause:3.9
container_name: acupedia-content
volumes:
- acupedia-content-data:/app/data
# ============================================================
# 6. Storefront Web App (Vite/React on Port 3000)
# ============================================================
store:
build:
context: ${ACUPEDIA_STORE_PATH:-../../acupedia_store_ui}
dockerfile: Dockerfile
args:
VITE_BASE_PATH: ${VITE_STORE_BASE_PATH:-/store/}
container_name: acupedia-store
restart: unless-stopped
depends_on:
- backend
ports:
- "${STORE_PORT:-3000}:80"
networks:
- acupedia-net
# ============================================================
# 7. Admin Portal Web App (Vite/React on Port 3001)
# ============================================================
admin:
build:
context: ${ACUPEDIA_ADMIN_PATH:-../../acupedia_web_ui}
dockerfile: Dockerfile
args:
VITE_BASE_PATH: ${VITE_ADMIN_BASE_PATH:-/admin/}
container_name: acupedia-admin
restart: unless-stopped
depends_on:
- backend
ports:
- "${ADMIN_PORT:-3001}:80"
networks:
- acupedia-net
volumes:
acupedia-postgres-data:
acupedia-redis-data:
driver: local
acupedia-minio-data:
acupedia-content-data:
acupedia-redisinsight-data:
driver: local
acupedia-redis-data:
driver: local
networks:
acupedia-net: