forked from seriouslag/actual-auto-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
72 lines (69 loc) · 2.26 KB
/
docker-compose.e2e.yml
File metadata and controls
72 lines (69 loc) · 2.26 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
69
70
71
72
services:
# Mock SimpleFIN Server
# Provides a fake SimpleFIN API for testing bank sync functionality
mock-simplefin:
build:
context: .
dockerfile: Dockerfile.mock-simplefin
ports:
- '8080:8080'
environment:
- MOCK_SIMPLEFIN_PORT=8080
- MOCK_SIMPLEFIN_USERNAME=test
- MOCK_SIMPLEFIN_PASSWORD=test123
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health']
interval: 5s
timeout: 5s
retries: 3
start_period: 5s
restart: 'no'
actual-server:
image: actualbudget/actual-server:latest
ports:
- '5006:5006'
volumes:
- actual-data:/data
healthcheck:
test: ['CMD-SHELL', 'node src/scripts/health-check.js']
interval: 5s
timeout: 10s
retries: 12
start_period: 15s
restart: 'no'
depends_on:
mock-simplefin:
condition: service_healthy
e2e-tests:
build:
context: .
dockerfile: Dockerfile.e2e
depends_on:
actual-server:
condition: service_healthy
mock-simplefin:
condition: service_healthy
environment:
- ACTUAL_SERVER_URL=http://actual-server:5006
- ACTUAL_SERVER_PASSWORD=test-password-e2e
- ACTUAL_DATA_DIR=/app/e2e-data
# Mock SimpleFIN config (for mock server tests)
- MOCK_SIMPLEFIN_PORT=8080
- MOCK_SIMPLEFIN_URL=http://mock-simplefin:8080
- MOCK_SIMPLEFIN_ACCESS_KEY=http://test:test123@mock-simplefin:8080/
# Real SimpleFIN tokens (for multi-budget tests with beta-bridge.simplefin.org)
# SIMPLEFIN_SETUP_TOKEN: Base64-encoded claim URL (e.g., aHR0cHM6Ly9iZXRh...)
# - One-time use token that must be claimed to get an access key
# - Obtained from SimpleFIN developer portal
# SIMPLEFIN_ACCESS_KEY: Pre-claimed access URL with embedded credentials
# - Format: https://username:password@bridge.simplefin.org/simplefin/
# - Use this if token was already claimed
- SIMPLEFIN_SETUP_TOKEN_1=${SIMPLEFIN_SETUP_TOKEN_1:-}
- SIMPLEFIN_SETUP_TOKEN_2=${SIMPLEFIN_SETUP_TOKEN_2:-}
- SIMPLEFIN_ACCESS_KEY_1=${SIMPLEFIN_ACCESS_KEY_1:-}
- SIMPLEFIN_ACCESS_KEY_2=${SIMPLEFIN_ACCESS_KEY_2:-}
volumes:
- e2e-data:/app/e2e-data
volumes:
actual-data:
e2e-data: