Skip to main content

Overview

When running Ringee with docker-compose.app.yml, several environment variables are automatically overridden to use Docker’s internal networking. You don’t need to manually set these.

Automatic Overrides

The following variables are set automatically by Docker Compose:
VariableDocker Value
DATABASE_URLpostgresql://ringee-user:ringee-password@postgres:5432/ringee-db-local?schema=public
REDIS_HOSTredis
REDIS_PORT6379
REDIS_URLredis://redis:6379
The hostnames postgres and redis refer to the Docker internal service names. These are resolved automatically by Docker’s internal DNS.

Volumes

The default Docker Compose configuration creates the following persistent volumes:
VolumePurpose
postgres-dataPostgreSQL database files
redis-dataRedis persistence data

Ports

Default port mapping:
ServiceHost PortContainer Port
Admin Frontend42004200
Consumer Frontend42014201
Backend API30003000
PostgreSQL54325432
Redis63796379

Customizing ports

To change the host ports, modify the ports section in docker-compose.app.yml:
services:
  frontend:
    ports:
      - "8080:4200"  # Access admin on port 8080 instead
If you change the frontend or backend ports, remember to update the corresponding FRONTEND_URL, PUBLIC_BACKEND_URL, and NEXT_PUBLIC_API_BASE_URL environment variables accordingly.

Rebuilding

After making changes to the codebase or environment:
# Rebuild and restart all containers
docker-compose -f docker-compose.app.yml up --build -d

# Rebuild only a specific service
docker-compose -f docker-compose.app.yml up --build -d backend