services: postgres: image: postgres:16 restart: always environment: - POSTGRES_DB=n8n - POSTGRES_USER=postgres - POSTGRES_PASSWORD=password n8n: image: ghcr.io/n8n-io/n8n:${N8N_VERSION:-latest} environment: - N8N_DIAGNOSTICS_ENABLED=false - N8N_USER_FOLDER=/n8n - DB_TYPE=postgresdb - DB_POSTGRESDB_HOST=postgres - DB_POSTGRESDB_PASSWORD=password ports: - 5678:5678 volumes: - ${RUN_DIR}:/n8n depends_on: - postgres benchmark: image: ghcr.io/n8n-io/n8n-benchmark:${N8N_BENCHMARK_VERSION:-latest} depends_on: - n8n environment: - N8N_BASE_URL=http://n8n:5678 - K6_API_TOKEN=${K6_API_TOKEN}