This Image can't be run in on its own. It has to be executed in a compose with 4 other images (all available on docker hub). The list of all 5 images:
docker load --input s4dbs_v<version>_all_images.tar.gz
docker-compose up -d
Please do the following steps before you start all services under point 7 from the chapter above.
mkdir ssl
cp company_ssl.key ./ssl/ssl_cert.key
cp company_ssl.crt ./ssl/ssl_cert.crt
...
server {
...
#SSL Config
# Enable the following 4 lines if SSL should be activated:
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# ssl_certificate_key /etc/ssl/ssl_cert.key;
# ssl_certificate /etc/ssl/ssl_cert.crt;
Then save your changes and close the file.
...
s4dbs_frontend:
...
environment:
- FRONTEND_CONFIG_MODE=false
- SERVICE_PROTOCOL=http #use http or https
- SERVICE_HOST=<enter container host hostname here>
- SERVICE_PORT=80 #use 80 or 443
- GRAFANA_PROTOCOL=http #use http or https
- GRAFANA_HOST=<enter container host hostname here>
- GRAFANA_PORT=80/grafana #use 80 or 443
...
Change the port from "80" to "443" and the protocol name from "http" to "https". Further down, activate these lines too:
...
s4dbs_reverse:
...
ports:
- "80:80" # Disable this line when SSL should be used
#- "443:443" # Enable this line to activate SSL
...
volumes:
- ./configuration/nginx.conf:/etc/nginx/nginx.conf # Enable SSL in this config file
#- ./ssl/ssl_cert.key:/etc/ssl/ssl_cert.key # Enable this line to activate SSL
#- ./ssl/ssl_cert.crt:/etc/ssl/ssl_cert.crt # Enable this line to activate SSL
The SSL certificate files need to be mounted inside of the NginX container and the port "443" needs to be exposed. On the other hand port "80" must be not exposed.
Speedgain for Databases has two persistent Volumes.
Use following docker-compose to deploy Speedgain for Databases:
version: "3.9"
services:
s4dbs_postgres:
image: itgainis/s4dbs_timescaledb:<Version>
restart: always
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
volumes:
- s4dbs_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=<PasswordOfPostgresUser>
privileged: true
s4dbs_collector:
image: itgainis/s4dbs_collector:<Version>
restart: always
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
environment:
- PDB_USER=postgres
- PDB_PASS=<PasswordOfPostgresUser_specified_in_s4dbs_postgres_section>
- PDB_HOST=s4dbs_postgres
- PDB_PORT=5432
- PDB_DB_NAME=speedgain
- SPGLOGLEVEL=INFO
privileged: true
depends_on:
- s4dbs_postgres
s4dbs_service:
image: itgainis/s4dbs_service:<Version>
restart: always
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
environment:
- PDB_USER=postgres
- PDB_PASS=<PasswordOfPostgresUser_specified_in_s4dbs_postgres_section>
- PDB_HOST=s4dbs_postgres
- PDB_PORT=5432
- PDB_DB_NAME=speedgain
- PDB_PROPERTIES=
- SPGDB_SERVICE_HOME=/opt/spgdb_service_home/
privileged: true
depends_on:
- s4dbs_postgres
s4dbs_grafana:
image: itgainis/s4dbs_grafana:<Version>
restart: always
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
volumes:
- s4dbs_grafana:/var/lib/grafana
#- <localPathToCustomBoardsOrVolume>:/s4dbs_custom_boards # valid json files will be provisioned via script into S4DBs - Custom Folder
environment:
- PDB_USER=postgres
- PDB_PASS=<PasswordOfPostgresUser_specified_in_s4dbs_postgres_section>
- PDB_HOST=s4dbs_postgres
- PDB_PORT=5432
- PDB_DB_NAME=speedgain
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana/
privileged: true
depends_on:
- s4dbs_postgres
s4dbs_frontend:
image: itgainis/s4dbs_frontend:<Version>
restart: always
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
environment:
- frontendConfigMode=false
privileged: true
depends_on:
- s4dbs_postgres
s4dbs_reverse:
image: nginx:1.23
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "5"
ports:
- "80:80" # Disable this line when SSL should be used
#- "443:443" # Enable this line to activate SSL
depends_on:
- s4dbs_grafana
- s4dbs_frontend
- s4dbs_service
volumes:
- ./configuration/nginx.conf:/etc/nginx/nginx.conf # Enable SSL in this config file
#- ./ssl/ssl_cert.key:/etc/ssl/ssl_cert.key # Enable this line to activate SSL
#- ./ssl/ssl_cert.crt:/etc/ssl/ssl_cert.crt # Enable this line to activate SSL
volumes:
s4dbs_postgres:
s4dbs_grafana:
#s4dbs_grafana_custom_boards: #only needed if custom boards volume is used in grafana section
Content type
Image
Digest
sha256:fd1bdb99c…
Size
247.1 MB
Last updated
3 months ago
docker pull itgainis/s4dbs_service:2.3.0