zapishis-client/docker-compose.dev.yml
vchikalkin 50ef49d01f Add cache-proxy service to Docker configurations and update deployment workflow</message>
<message>
- Introduced a new cache-proxy service in both `docker-compose.dev.yml` and `docker-compose.yml`, with dependencies on Redis and integration into the web and bot services.
- Updated GitHub Actions workflow to include build and push steps for the cache-proxy image, ensuring it is deployed alongside web and bot services.
- Modified environment variable management to accommodate the cache-proxy, enhancing the overall deployment process.
- Adjusted GraphQL cached URL to point to the cache-proxy service for improved request handling.
2025-10-06 20:10:30 +03:00

52 lines
929 B
YAML

services:
cache-proxy:
build:
context: .
dockerfile: ./apps/cache-proxy/Dockerfile
env_file:
- .env
depends_on:
- redis
restart: always
web:
env_file:
- .env
build:
context: .
dockerfile: ./apps/web/Dockerfile
restart: always
depends_on:
- cache-proxy
ports:
- 3000:3000
bot:
build:
context: .
dockerfile: ./apps/bot/Dockerfile
env_file:
- .env
depends_on:
- redis
- cache-proxy
restart: always
redis:
image: redis:8-alpine
restart: always
env_file:
- .env
command: ['redis-server', '--requirepass', '${REDIS_PASSWORD}']
ports:
- '127.0.0.1:6379:6379'
volumes:
- redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
redis-data: