Skip to content

Commit 27a43ca

Browse files
committed
streampipes
1 parent 270630a commit 27a43ca

7 files changed

Lines changed: 101 additions & 143 deletions

File tree

apps/streampipes/.env

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,22 @@
1-
W9_REPO="wordpress"
1+
W9_REPO=apachestreampipes/ui
22
W9_DIST=community
3-
W9_VERSION="latest"
3+
W9_VERSION=0.98.0
44

55
W9_POWER_PASSWORD="1PrMxExC45LsCT"
66

7-
# Environments which for user settings when create application
8-
# Named expression: W9_xxx_xxx_SET, xxx refer to file fields
97
W9_HTTP_PORT_SET=9001
10-
# W9_HTTPS_PORT_SET=9002
11-
# W9_DB_PORT_SET=3306
12-
# W9_SSH_PORT_SET=23
13-
W9_KEY_SET="dfsjdkjf77xjxcjcj"
14-
15-
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
16-
178
W9_ID=streampipes
18-
19-
# W9_HTTP_PORT or W9_HTTPS_PORT is need at leaset and used for proxy for web application
20-
# Some container (e.g teleport) need HTTPS access, then need to set this pra
21-
W9_HTTP_PORT=80
22-
W9_HTTPS_PORT=81
23-
24-
W9_LOGIN_USER=admin
25-
# use https://1password.com/zh-cn/password-generator/ to genarate 14 bit password
26-
# this password can also use password file
27-
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD
28-
W9_ADMIN_PATH="/wp-login"
29-
9+
W9_HTTP_PORT=8088
10+
W9_LOGIN_USER=admin@streampipes.apache.org
11+
W9_LOGIN_PASSWORD=admin
3012
# Container name's suffix must use one of the value
31-
W9_DB_EXPOSE="mysql,postgresql,mariadb,mongodb,redis"
32-
33-
# It is used when the application APP needs to set an external URL, which can be IP(or domain), IP:PORT
34-
# If have protocols, should be set it in the APP's ENV
13+
W9_DB_EXPOSE="couchdb,influxdb"
3514
W9_URL=internet_ip:$W9_HTTP_PORT_SET
36-
# modifies W9_URL on init when it is true
37-
W9_URL_REPLACE=true
38-
3915
W9_NETWORK=websoft9
4016

4117
#### ----------------------------------------------------------------------------------------- ####
4218

43-
4419
# Below environment is created by this app
4520

46-
WORDPRESS_DB_HOST=$W9_ID-mariadb
47-
WORDPRESS_DB_USER=wordpress #if use postgresql, it need set to postgres
48-
WORDPRESS_DB_PASSWORD=$W9_POWER_PASSWORD
49-
WORDPRESS_DB_NAME=wordpress
50-
51-
52-
#W9_NAME=""
53-
#W9_RCODE=""
21+
COMPOSE_PROJECT_NAME=streampipes
22+
SP_INFLUX_INIT_MODE=setup

apps/streampipes/CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
# CHANGELOG
2-
3-
## Release
4-
### Fixes and Enhancements
5-
1+
# CHANGELOG

apps/streampipes/Notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Appname
2-
## FAQ
1+
# StreamPipes
2+
Lines changed: 88 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,108 @@
1-
# image,docs: https://hub.docker.com/_/wordpress/
1+
# image,docs: https://hub.docker.com/u/apachestreampipes
22

33
services:
44

5-
wordpress:
5+
ui:
66
image: $W9_REPO:$W9_VERSION
77
container_name: $W9_ID
88
restart: unless-stopped
9-
#This is for access host from container
10-
# extra_hosts: ["host.docker.internal:host-gateway"]
11-
# command: |
12-
# /bin/bash -c "ping -c 3 host.docker.internal"
139
logging:
1410
driver: "json-file"
1511
options:
16-
max-file: "5"
17-
max-size: 10m
18-
deploy:
19-
resources:
20-
limits:
21-
memory: 5g
22-
cpus: '0.7'
12+
max-file: "5"
13+
max-size: 12m
14+
environment:
15+
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=$W9_ID-extensions:8090
2316
ports:
24-
- $W9_HTTP_PORT_SET:80
25-
env_file: .env
17+
- $W9_HTTP_PORT_SET:8088
18+
depends_on:
19+
- couchdb
20+
- backend
2621
volumes:
27-
- wordpress:/var/www/html
28-
- ./src/php_exra.ini:/usr/local/etc/php/conf.d/php_exra.ini
22+
- nginx:/etc/nginx/
2923

30-
mariadb:
31-
image: mariadb:10.4
32-
container_name: $W9_ID-mariadb
24+
backend:
25+
image: apachestreampipes/backend:$W9_VERSION
26+
container_name: $W9_ID-backend
3327
restart: unless-stopped
34-
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_log_buffer_size=30M
28+
logging:
29+
driver: "json-file"
30+
options:
31+
max-file: "5"
32+
max-size: 12m
33+
depends_on:
34+
- couchdb
35+
environment:
36+
- SP_PRIORITIZED_PROTOCOL=$W9_ID-nats
3537
volumes:
36-
- mysql_data:/var/lib/mysql
38+
- backend:/root/.streampipes
39+
40+
couchdb:
41+
image: couchdb:3.3.1
42+
container_name: $W9_ID-couchdb
43+
restart: unless-stopped
44+
logging:
45+
driver: "json-file"
46+
options:
47+
max-file: "5"
48+
max-size: 12m
3749
environment:
38-
MYSQL_DATABASE: $WORDPRESS_DB_NAME
39-
MYSQL_USER: $WORDPRESS_DB_USER
40-
MYSQL_PASSWORD: $W9_POWER_PASSWORD
41-
MYSQL_ROOT_PASSWORD: $W9_POWER_PASSWORD
50+
- COUCHDB_USER=admin
51+
- COUCHDB_PASSWORD=admin
52+
volumes:
53+
- couchdb:/opt/couchdb/data
54+
55+
influxdb:
56+
image: influxdb:2.6
57+
container_name: $W9_ID-influxdb
58+
restart: unless-stopped
59+
logging:
60+
driver: "json-file"
61+
options:
62+
max-file: "5"
63+
max-size: 12m
64+
environment:
65+
- INFLUXDB_DATA_ENGINE=tsm1
66+
- INFLUXDB_REPORTING_DISABLED=false
67+
- INFLUXDB_ADMIN_ENABLED=true
68+
- DOCKER_INFLUXDB_INIT_USERNAME=admin
69+
- DOCKER_INFLUXDB_INIT_PASSWORD=sp-admin
70+
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sp-admin
71+
- DOCKER_INFLUXDB_INIT_ORG=sp
72+
- DOCKER_INFLUXDB_INIT_BUCKET=sp
73+
- DOCKER_INFLUXDB_INIT_MODE=${SP_INFLUX_INIT_MODE}
74+
volumes:
75+
- influxdb:/var/lib/influxdb
76+
- influxdb2:/var/lib/influxdb2
77+
78+
nats:
79+
image: nats:latest
80+
container_name: $W9_ID-nats
81+
restart: unless-stopped
82+
logging:
83+
driver: "json-file"
84+
options:
85+
max-file: "5"
86+
max-size: 12m
87+
88+
extensions-all-iiot:
89+
image: apachestreampipes/extensions-all-iiot:$W9_VERSION
90+
container_name: $W9_ID-extensions
91+
restart: unless-stopped
92+
logging:
93+
driver: "json-file"
94+
options:
95+
max-file: "5"
96+
max-size: 12m
4297

4398
volumes:
44-
wordpress:
45-
mysql_data:
46-
99+
backend:
100+
couchdb:
101+
influxdb:
102+
influxdb2:
103+
nginx:
104+
47105
networks:
48106
default:
49-
name: $W9_NETWORK
107+
name: ${W9_NETWORK}
50108
external: true

apps/streampipes/src/nginx-proxy.conf.template

Lines changed: 0 additions & 57 deletions
This file was deleted.

apps/streampipes/src/php_exra.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/streampipes/variables.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"trademark": "Apache StreamPipes",
44
"release": false,
55
"fork_url": "https://github.com/apache/streampipes",
6-
"version_from": "",
6+
"version_from": "https://hub.docker.com/r/apachestreampipes/backend/tags",
77
"edition": [
88
{
99
"dist": "community",
1010
"version": [
11-
"latest"
11+
"0.98.0"
1212
]
1313
}
1414
],

0 commit comments

Comments
 (0)