2025-01-08 09:47:03 +03:30
|
|
|
services:
|
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: .
|
2025-01-15 11:49:30 +03:30
|
|
|
volumes:
|
2025-01-16 11:16:23 +03:30
|
|
|
- custom:/kutt/custom
|
2025-01-08 09:47:03 +03:30
|
|
|
environment:
|
|
|
|
DB_CLIENT: pg
|
|
|
|
DB_HOST: postgres
|
2025-01-15 11:49:47 +03:30
|
|
|
DB_PORT: 5432
|
2025-01-08 09:47:03 +03:30
|
|
|
REDIS_ENABLED: true
|
|
|
|
REDIS_HOST: redis
|
|
|
|
REDIS_PORT: 6379
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
user: ${DB_USER}
|
|
|
|
volumes:
|
|
|
|
- db_data_pg:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: ${DB_NAME}
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
expose:
|
|
|
|
- 5432
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "pg_isready" ]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
volumes:
|
2025-01-15 11:49:30 +03:30
|
|
|
db_data_pg:
|
|
|
|
custom:
|