-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailway.toml
More file actions
103 lines (85 loc) · 2.68 KB
/
Copy pathrailway.toml
File metadata and controls
103 lines (85 loc) · 2.68 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[build]
builder = "NIXPACKS"
[deploy]
healthcheckPath = "/"
healthcheckTimeout = 100
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 10
# Redis Service for OPAL communication (NEW)
[[services]]
name = "redis-broadcast"
source = "redis"
[services.variables]
REDIS_PORT = "6379"
# Provisioning API Service (NEW)
[[services]]
name = "provisioning-api"
source = "new-architecture/components/provisioning-api"
[services.variables]
PORT = "8010"
DEBUG = "false"
# Database connection - używamy istniejący PostgreSQL
DB_HOST = "${{ services.postgresql.host }}"
DB_PORT = "5432"
DB_USER = "opa_user"
DB_PASSWORD = "${{ services.postgresql.POSTGRES_PASSWORD }}"
DB_NAME = "opa_zero_poll"
# OPAL integration
OPAL_SERVER_URL = "http://${{ services.opal-server.host }}:7002"
DATA_PROVIDER_API_URL = "http://${{ services.opa-zero-poll.host }}:8110"
[services.healthcheck]
path = "/health"
timeout = 30
# OPA Standalone Service
[[services]]
name = "opa-standalone"
source = "new-architecture/components/opa-standalone"
[services.variables]
OPA_LOG_LEVEL = "info"
[services.healthcheck]
path = "/health"
timeout = 30
# OPAL Server Service - using Docker image
[[services]]
name = "opal-server"
[services.image]
name = "permitio/opal-server"
tag = "latest"
[services.variables]
# Broadcast channel (Redis)
OPAL_BROADCAST_URI = "redis://${{ services.redis-broadcast.host }}:6379"
# GitHub Policy Repository
OPAL_POLICY_REPO_URL = "https://github.com/plduser/opa-zero-poll.git"
OPAL_POLICY_REPO_MAIN_BRANCH = "main"
OPAL_POLICY_REPO_PATH = "new-architecture/components/opa-standalone/policies"
OPAL_POLICY_REPO_POLLING_INTERVAL = "30"
# Data Configuration
OPAL_DATA_CONFIG_ENABLED = "true"
OPAL_ALL_DATA_URL = "http://${{ services.opa-zero-poll.host }}:8110/opal/full-snapshot"
OPAL_LOG_LEVEL = "DEBUG"
[services.healthcheck]
path = "/healthcheck"
timeout = 30
# OPAL Client Service - using Docker image
[[services]]
name = "opal-client"
[services.image]
name = "permitio/opal-client"
tag = "latest"
[services.variables]
# OPAL Server connection
OPAL_SERVER_URL = "http://${{ services.opal-server.host }}:7002"
OPAL_FETCH_PROVIDER_ENABLED = "true"
OPAL_INLINE_OPA_ENABLED = "false"
# Broadcast channel (Redis)
OPAL_BROADCAST_URI = "redis://${{ services.redis-broadcast.host }}:6379"
# OPA connection
OPAL_POLICY_STORE_URL = "http://${{ services.opa-standalone.host }}:8181"
# Policy subscription
OPAL_POLICY_SUBSCRIPTION_DIRS = "new-architecture/components/opa-standalone/policies"
# Data configuration
OPAL_DATA_UPDATER_ENABLED = "true"
OPAL_DATA_TOPICS = "multi_tenant_data"
OPAL_DATA_CONFIG_SOURCES = "http://${{ services.opa-zero-poll.host }}:8110/data/config"
OPAL_POLICY_UPDATER_ENABLED = "true"
OPAL_LOG_LEVEL = "DEBUG"