Files
support_backend/docker-compose.development.yml
T

95 lines
1.7 KiB
YAML
Raw Normal View History

2026-08-19 16:29:17 +05:30
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_COMMAND: ${BUILD_COMMAND}
2026-08-20 11:52:46 +05:30
container_name: support-api-development
2026-08-19 16:29:17 +05:30
env_file:
- .env.development
environment:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
2026-08-20 11:52:46 +05:30
DATABASE_URL: ${DATABASE_URL}
REDIS_HOST: ${REDIS_HOST}
2026-08-19 16:29:17 +05:30
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- "${PORT}:${PORT}"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:18-alpine
container_name: postgres-development
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
2026-08-19 19:03:45 +05:30
POSTGRES_HOST_AUTH_METHOD: trust
2026-09-03 16:40:19 +05:30
ports:
- "5434:5432"
2026-08-19 16:29:17 +05:30
volumes:
- postgres_development_data:/var/lib/postgresql
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: redis-development
command:
- redis-server
- --requirepass
- ${REDIS_PASSWORD}
2026-09-03 16:40:19 +05:30
ports:
- "6379:6379"
2026-08-19 16:29:17 +05:30
volumes:
- redis_development_data:/data
healthcheck:
test:
[
"CMD",
"redis-cli",
"-a",
"${REDIS_PASSWORD}",
"ping"
]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
postgres_development_data:
2026-09-03 14:19:21 +05:30
redis_development_data: