```yaml services: server: image: twentycrm/twenty:v1.2.1 container_name: twenty-server user: 0:0 volumes: - ./data:/app/packages/twenty-server/.local-storage:rw ports: - 3353:3000 environment: NODE_PORT: 3000 PG_DATABASE_URL: postgres://:@db:5432/ SERVER_URL: https:// APP_SECRET: REDIS_URL: redis://redis:6379 DISABLE_DB_MIGRATIONS: false DISABLE_CRON_JOBS_REGISTRATION: false IS_MULTIWORKSPACE_ENABLED: false STORAGE_TYPE: local depends_on: db: condition: service_healthy redis: condition: service_healthy healthcheck: test: ["CMD-SHELL", "curl --fail http://localhost:3000/healthz || exit 1"] interval: 30s timeout: 15s retries: 40 start_period: 120s restart: always worker: image: twentycrm/twenty:latest container_name: twenty-worker volumes: - ./data:/app/packages/twenty-server/.local-storage:rw command: ["yarn", "worker:prod"] environment: PG_DATABASE_URL: postgres://:@db:5432/ SERVER_URL: https:// REDIS_URL: redis://redis:6379 DISABLE_DB_MIGRATIONS: false DISABLE_CRON_JOBS_REGISTRATION: false STORAGE_TYPE: local depends_on: db: condition: service_healthy redis: condition: service_healthy server: condition: service_healthy healthcheck: test: ["CMD-SHELL", "pgrep -f 'yarn worker:prod' || exit 1"] interval: 60s timeout: 10s retries: 20 start_period: 60s restart: always db: image: postgres:16 container_name: twenty-db hostname: db security_opt: - no-new-privileges:true healthcheck: test: ["CMD-SHELL", "pg_isready -q -d -U || exit 1"] timeout: 30s interval: 30s retries: 40 start_period: 180s volumes: - ./db:/var/lib/postgresql/data:rw environment: POSTGRES_DB: POSTGRES_USER: POSTGRES_PASSWORD: POSTGRES_INITDB_ARGS: "--auth-host=md5" restart: always redis: image: redis:7-alpine container_name: twenty-redis healthcheck: test: ["CMD-SHELL", "redis-cli ping | grep PONG || exit 1"] interval: 30s timeout: 10s retries: 40 start_period: 60s volumes: - ./redis:/data:rw environment: TZ: UTC restart: always command: > redis-server --appendonly yes --appendfsync everysec --maxmemory-policy noeviction --save 900 1 --save 300 10 --save 60 10000 ```