-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdocker-compose-test-dockerimage.yaml
More file actions
159 lines (151 loc) · 4.29 KB
/
docker-compose-test-dockerimage.yaml
File metadata and controls
159 lines (151 loc) · 4.29 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: '2.4'
services:
redis-service-test:
image: redis:7.2-alpine
command: redis-server --save "" --appendonly no
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 1s
timeout: 3s
retries: 5
postgres-test:
image: timescale/timescaledb:latest-pg15
ports:
- 5437:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "Hello123!"
POSTGRES_DB: "dataplane"
volumes:
- dataplane-postgres-test:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 30s
retries: 5
nats-test:
image: nats:2.9-scratch
command:
- "--port"
- "4222"
mainapp-test:
build:
context: .
dockerfile: docker-build/Dockerfile.main.alpine
ports:
- 9002:9002
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres-test
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: "9002"
DP_NATS: "nats://nats-test:4222"
DP_MODE: "development"
DP_DEBUG: "true"
DP_DB_DEBUG: "false"
DP_MQ_DEBUG: "true"
DP_METRIC_DEBUG: "false"
DP_SCHEDULER_DEBUG: "false"
DP_WORKER_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-test"
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:9002"
dataplane-worker:
build:
context: .
dockerfile: docker-build/Dockerfile.workerpython.debian
deploy:
replicas: 2
resources:
limits:
cpus: "0.5"
memory: 1G
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres-test
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-test: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-test"
DP_REDIS_PORT: "6379"
DP_REDIS_PASSWORD: ""
DP_REDIS_DB: "0"
dataplane-worker-prod:
build:
context: ./
dockerfile: docker-build/Dockerfile.workerpython.debian
deploy:
replicas: 2
resources:
limits:
cpus: "0.5"
memory: 1G
environment:
DP_CODE_FOLDER: "/dataplane/code-files/"
DP_DB_HOST: postgres-test
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-test:4222"
DP_MODE: "development"
DP_DEBUG: "true"
DP_DB_DEBUG: "false"
DP_MQ_DEBUG: "true"
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-test"
DP_REDIS_PORT: "6379"
DP_REDIS_PASSWORD: ""
DP_REDIS_DB: "0"
volumes:
dataplane-postgres-test: