-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
68 lines (68 loc) · 2 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
68 lines (68 loc) · 2 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
64
65
66
67
68
version: "3.8"
services:
db:
image: postgres:17
container_name: smart_test_postgres
environment:
POSTGRES_USER: smart_test
POSTGRES_PASSWORD: test_password
POSTGRES_DB: smart_test_db
ports:
- "5433:5432"
volumes:
- test-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U smart_test -d smart_test_db"]
interval: 1s
timeout: 5s
retries: 10
api:
build:
context: .
dockerfile: Dockerfile
container_name: smart_test_api
environment:
DEPLOYMENT: test
SERVICE: cudi
VERSION: "0.1.0"
VERSION_MAJOR: "0"
VERSION_MINOR: "1"
VERSION_BUILD: "0"
API_SERVICE_NAME: smart
API_VERSION: "1"
HOST: "0.0.0.0"
PORT: "8080"
DB_HOST: db
DB_PORT: "5432"
DB_NAME: smart_test_db
DB_USER: smart_test
DB_PASS: test_password
DB_SSL: disable
DB_SCHEMA: public
CONFIG_APPLICATION: ./configs/appsettings.yaml
# Cognito is not used in test
COGNITO_REGION: ap-northeast-1
COGNITO_USER_POOL_ID: test-pool
COGNITO_CLIENT_ID: test-client
# S3 (not used in test, but required by env parser)
S3_ENABLED: "false"
S3_REGION: ap-northeast-1
S3_BUCKET_NAME: test-bucket
S3_PUBLIC_BASE_URL: http://localhost:9000/test-bucket
# SmartLock
SMARTLOCK_API_KEY_PEPPER: test-pepper-value
# KeyBox password encryption (AES-256: 64 hex chars = 32 bytes)
KEYBOX_ENCRYPTION_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
# Digital Auth (KYC start test)
DIGITAL_AUTH_CLIENT_ID: test-digital-auth-client
DIGITAL_AUTH_AUTHORIZATION_ENDPOINT: https://example.test/oauth2/authorize
DIGITAL_AUTH_REDIRECT_URI: https://example.test/kyc/callback
DIGITAL_AUTH_STUB_MODE: "true"
AWS_REGION: ap-northeast-1
ports:
- "18080:8080"
depends_on:
db:
condition: service_healthy
volumes:
test-db-data: