forked from dataplane-app/dataplane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
144 lines (136 loc) · 3.93 KB
/
docker-compose.yaml
File metadata and controls
144 lines (136 loc) · 3.93 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '2.4'
services:
redis-service:
image: redis:7.2-alpine
command: redis-server --save "" --appendonly no
ports:
- 6379
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 1s
timeout: 3s
retries: 5
postgres:
image: timescale/timescaledb:latest-pg15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "Hello123!"
POSTGRES_DB: "dataplane"
volumes:
- dataplane-postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 30s
retries: 5
nats:
image: nats:2.9-scratch
command:
- "--port"
- "4222"
mainapp:
image: dataplane/dataplane:latest
ports:
- 9001:9001
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres
DP_DB_USER: postgres
DP_DB_SSL: "disable"
DP_DB_PORT: "5432"
DP_DB_DATABASE: "dataplane"
secret_db_pwd: "Hello123!"
DP_DATABASE: "timescaledb"
DP_PORT: "9001"
DP_NATS: "nats://nats:4222"
DP_MODE: "development"
DP_DEBUG: "true"
DP_DB_DEBUG: "false"
DP_MQ_DEBUG: "false"
DP_METRIC_DEBUG: "false"
DP_SCHEDULER_DEBUG: "false"
DP_CLEANTASKS_DAYS: "60"
DP_REMOVELOGS_DAYS: "60"
DP_CODE_FILE_STORAGE: "Database"
DP_DFS_CODE_FOLDER: "/dataplane/dfs-code-files/"
DP_DISTRIBUTED_MODE: "NO"
DP_REDIS_HOST: "redis-service"
DP_REDIS_PORT: "6379"
DP_REDIS_PASSWORD: ""
DP_REDIS_DB: "0"
DP_PIPELINE_DATA_TTL_SECONDS: "3600"
DP_PIPELINE_DATA_LIMIT_MB: "5"
DP_ALLOW_ORIGINS: "http://localhost:3000, http://localhost:9000"
dataplane-worker:
image: dataplane/dataplane-worker-python:latest
deploy:
replicas: 1
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres
DP_DB_USER: postgres
DP_DB_SSL: "disable"
DP_DB_PORT: "5432"
DP_DB_DATABASE: "dataplane"
secret_db_pwd: "Hello123!"
DP_DATABASE: "timescaledb"
DP_NATS: "nats://nats:4222"
DP_MODE: "development"
DP_DEBUG: "true"
DP_DB_DEBUG: "false"
DP_MQ_DEBUG: "false"
DP_METRIC_DEBUG: "false"
DP_SCHEDULER_DEBUG: "false"
DP_WORKER_HEARTBEAT_SECONDS: "1"
DP_WORKER_GROUP: "python_dev"
DP_WORKER_CMD: "/bin/sh"
DP_WORKER_TYPE: "vm"
DP_WORKER_LB: "roundrobin"
DP_WORKER_ENV: "Development"
DP_WORKER_PORT: "9005"
DP_WORKER_LANGUAGES: "Python"
DP_WORKER_LOAD_PACKAGES: "Python"
DP_CODE_FILE_STORAGE: "Database"
DP_DFS_CODE_FOLDER: "/dataplane/dfs-code-files/"
DP_DISTRIBUTED_MODE: "NO"
DP_REDIS_HOST: "redis-service"
DP_REDIS_PORT: "6379"
DP_REDIS_PASSWORD: ""
DP_REDIS_DB: "0"
dataplane-worker-prod:
image: dataplane/dataplane-worker-python:latest
deploy:
replicas: 1
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres
DP_DB_USER: postgres
DP_DB_SSL: "disable"
DP_DB_PORT: "5432"
DP_DB_DATABASE: "dataplane"
secret_db_pwd: "Hello123!"
DP_DATABASE: "timescaledb"
DP_NATS: "nats://nats:4222"
DP_MODE: "development"
DP_DEBUG: "true"
DP_DB_DEBUG: "false"
DP_MQ_DEBUG: "false"
DP_METRIC_DEBUG: "false"
DP_SCHEDULER_DEBUG: "false"
DP_WORKER_HEARTBEAT_SECONDS: "1"
DP_WORKER_GROUP: "python_prod"
DP_WORKER_CMD: "/bin/sh"
DP_WORKER_TYPE: "vm"
DP_WORKER_LB: "roundrobin"
DP_WORKER_ENV: "Production"
DP_WORKER_PORT: "9005"
DP_WORKER_LANGUAGES: "Python"
DP_WORKER_LOAD_PACKAGES: "Python"
DP_CODE_FILE_STORAGE: "Database"
DP_DFS_CODE_FOLDER: "/dataplane/dfs-code-files/"
DP_DISTRIBUTED_MODE: "NO"
DP_REDIS_HOST: "redis-service"
DP_REDIS_PORT: "6379"
DP_REDIS_PASSWORD: ""
DP_REDIS_DB: "0"
volumes:
dataplane-postgres: