-
Notifications
You must be signed in to change notification settings - Fork 30
/
cypress-dockerbuilt-compose.yaml
154 lines (146 loc) · 3.94 KB
/
cypress-dockerbuilt-compose.yaml
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
version: '2.4'
services:
redis-service:
image: redis:7.2-alpine
ports:
- 6379
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 1s
timeout: 3s
retries: 5
postgres-test:
image: timescale/timescaledb:2.5.1-pg14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "Hello123!"
POSTGRES_DB: "testcypress"
# volumes:
# - testcypress-postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 30s
retries: 5
# restart: always
nats:
image: nats:2.9-scratch
command:
- "--port"
- "4222"
nats-r:
image: nats:2.7.4-scratch
command:
- "--cluster"
- "nats://0.0.0.0:6222"
- "--http_port"
- "8222"
- "--port"
- "4222"
- "--routes"
- "nats://nats:6222"
deploy:
replicas: 2
mainapp-cypresstest:
image: dataplane/dataplane:latest
ports:
- 9002:9001
depends_on:
- redis-service
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: "testcypress"
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"
mainapp2-cypresstest:
image: dataplane/dataplane:latest
deploy:
replicas: 2
depends_on:
- redis-service
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: "testcypress"
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"
dataplane-worker-cypresstest:
image: dataplane/dataplane-worker-python:latest
mem_limit: 512MB
cpus: 1.5
deploy:
replicas: 3
depends_on:
- redis-service
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: "testcypress"
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_1"
DP_WORKER_CMD: "/bin/sh"
DP_WORKER_TYPE: "container"
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"