-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
63 lines (61 loc) · 2.43 KB
/
docker-compose.test.yml
File metadata and controls
63 lines (61 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
app:
build:
context: .
dockerfile: Dockerfile.backend
ports: !override
- "8001:8000"
environment:
DATABASE_URL: postgresql+asyncpg://sheaf:sheaftest@db:5432/sheaf
REDIS_URL: redis://redis:6379/0
JWT_SECRET_KEY: test-jwt-secret-not-for-production
SHEAF_ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
SHEAF_BASE_URL: "http://localhost:8001"
SHEAF_MODE: "${SHEAF_MODE:-selfhosted}"
ADMIN_AUTH_LEVEL: "${ADMIN_AUTH_LEVEL:-none}"
REGISTRATION_MODE: open
EMAIL_BACKEND: none
EMAIL_VERIFICATION: "off"
STORAGE_BACKEND: filesystem
IMAGE_SERVING: unsigned
RATE_LIMIT_ENABLED: "${RATE_LIMIT_ENABLED:-false}"
RATE_LIMIT_GLOBAL_PER_IP: "${RATE_LIMIT_GLOBAL_PER_IP:-600}"
RATE_LIMIT_GLOBAL_WINDOW: "${RATE_LIMIT_GLOBAL_WINDOW:-60}"
ALLOW_IMAGE_UPLOADS: "${ALLOW_IMAGE_UPLOADS:-true}"
ALLOW_BIO_IMAGES: "${ALLOW_BIO_IMAGES:-true}"
ALLOW_EXTERNAL_IMAGES: "${ALLOW_EXTERNAL_IMAGES:-true}"
# Mobile push: dummy creds in the test stack so channel creation
# for FCM / APNS_DEV / APNS_PROD passes the feature-flag gate.
# Real dispatch is mocked in tests.
FCM_SERVICE_ACCOUNT_JSON: '{"project_id":"sheaf-test","client_email":"x@y","private_key":"-----BEGIN PRIVATE KEY-----\nfake\n-----END PRIVATE KEY-----\n"}'
APNS_TEAM_ID: "TESTTEAM01"
APNS_KEY_ID: "TESTKEY001"
APNS_BUNDLE_ID: "com.sheaftest.app"
APNS_P8_KEY: "-----BEGIN PRIVATE KEY-----\nfake\n-----END PRIVATE KEY-----\n"
# apns_dev is opt-in (off by default to keep prod from accepting
# sandbox tokens). The test stack mimics a dev/staging deploy by
# flipping it on so apns_dev paths get exercised.
APNS_DEV_ENABLED: "true"
# Import-runner background loop OFF in the test stack: the
# import-runner tests drive the runner manually (often with a
# stubbed PK API). A live loop would race them and process a job
# with the real handler before the stubbed drive gets to it.
IMPORT_RUNNER_ENABLED: "false"
volumes: []
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
db:
ports: !override
- "5433:5432"
volumes: []
environment:
POSTGRES_DB: sheaf
POSTGRES_USER: sheaf
POSTGRES_PASSWORD: sheaftest
redis:
ports: !override
- "6380:6379"
volumes: []