mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-03 22:28:24 +00:00
test docker mysql
This commit is contained in:
parent
2c3be7b52d
commit
8a7c145a19
1 changed files with 43 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
## do not use it in production
|
||||
|
||||
services:
|
||||
###################### POSTGRESQL ################################
|
||||
pg:
|
||||
image: postgres:alpine
|
||||
environment:
|
||||
|
|
@ -15,12 +16,11 @@ services:
|
|||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile
|
||||
environment: &env_vars
|
||||
environment: &env_vars_pg
|
||||
- PASSWORD=gimmeTheStats1337
|
||||
- DB_HOSTNAME=pg
|
||||
- DB_NAME=librespeed
|
||||
- DB_PASSWORD=Not4SecureProduction
|
||||
- DB_PORT=5432
|
||||
- DB_TYPE=postgresql
|
||||
- DB_USERNAME=librespeed
|
||||
- EMAIL=test@example.com
|
||||
|
|
@ -35,6 +35,46 @@ services:
|
|||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile.alpine
|
||||
environment: *env_vars
|
||||
environment: *env_vars_pg
|
||||
ports:
|
||||
- 9124:8080
|
||||
|
||||
####################### MYSQL ##############################
|
||||
|
||||
mysql:
|
||||
image: mysql:lts
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: Not4SecureProduction
|
||||
MYSQL_USER: librespeed
|
||||
MYSQL_PASSWORD: Not4SecureProduction
|
||||
MYSQL_DATABASE: librespeed
|
||||
volumes:
|
||||
# mount init script from source to create database tables
|
||||
- ../../results/telemetry_mysql.sql:/docker-entrypoint-initdb.d/01-init.sql
|
||||
|
||||
speedtest-debian-mysql:
|
||||
# check at http://localhost:9125/results/sanitycheck.php
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile
|
||||
environment: &env_vars_mysql
|
||||
- PASSWORD=gimmeTheStats1337
|
||||
- DB_HOSTNAME=mysql
|
||||
- DB_NAME=librespeed
|
||||
- DB_PASSWORD=Not4SecureProduction
|
||||
- DB_TYPE=mysql
|
||||
- DB_USERNAME=librespeed
|
||||
- EMAIL=test@example.com
|
||||
- ENABLE_ID_OBFUSCATION=true
|
||||
- MODE=standalone
|
||||
- REDACT_IP_ADDRESSES=true
|
||||
- TELEMETRY=true
|
||||
ports:
|
||||
- 9125:8080
|
||||
speedtest-alpine-mysql:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: Dockerfile.alpine
|
||||
environment: *env_vars_mysql
|
||||
ports:
|
||||
- 9126:8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue