2024-08-23 04:43:26 -07:00
|
|
|
services:
|
2024-09-04 23:42:58 -07:00
|
|
|
mockapi:
|
|
|
|
image: wiremock/wiremock:3.9.1
|
|
|
|
ports:
|
|
|
|
- '8088:8080'
|
|
|
|
volumes:
|
|
|
|
- ${MOCK_API_DATA_PATH}/mappings:/home/wiremock/mappings
|
|
|
|
|
2024-08-23 04:43:26 -07:00
|
|
|
n8n:
|
|
|
|
image: ghcr.io/n8n-io/n8n:${N8N_VERSION:-latest}
|
2024-09-04 23:42:58 -07:00
|
|
|
user: root:root
|
2024-08-23 04:43:26 -07:00
|
|
|
environment:
|
|
|
|
- N8N_DIAGNOSTICS_ENABLED=false
|
|
|
|
- N8N_USER_FOLDER=/n8n
|
2024-08-27 07:51:43 -07:00
|
|
|
- DB_SQLITE_POOL_SIZE=3
|
|
|
|
- DB_SQLITE_ENABLE_WAL=true
|
2024-08-23 04:43:26 -07:00
|
|
|
ports:
|
|
|
|
- 5678:5678
|
|
|
|
volumes:
|
2024-08-29 22:46:55 -07:00
|
|
|
- ${RUN_DIR}:/n8n
|
2024-09-02 04:58:24 -07:00
|
|
|
healthcheck:
|
2024-09-04 23:42:58 -07:00
|
|
|
test: ['CMD-SHELL', 'wget --spider -q http://n8n:5678/healthz || exit 1']
|
2024-09-02 04:58:24 -07:00
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
2024-09-04 23:42:58 -07:00
|
|
|
depends_on:
|
|
|
|
mockapi:
|
|
|
|
condition: service_started
|
2024-09-02 04:58:24 -07:00
|
|
|
|
2024-08-23 04:43:26 -07:00
|
|
|
benchmark:
|
|
|
|
image: ghcr.io/n8n-io/n8n-benchmark:${N8N_BENCHMARK_VERSION:-latest}
|
|
|
|
depends_on:
|
2024-09-02 04:58:24 -07:00
|
|
|
n8n:
|
|
|
|
condition: service_healthy
|
2024-08-23 04:43:26 -07:00
|
|
|
environment:
|
|
|
|
- N8N_BASE_URL=http://n8n:5678
|
2024-08-23 06:59:19 -07:00
|
|
|
- K6_API_TOKEN=${K6_API_TOKEN}
|