-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
158 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPOSE_PROJECT_NAME=speedtest-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
## this is a docker compose file used to test all scenarios | ||
## do not use it in production | ||
|
||
services: | ||
###################### POSTGRESQL ################################ | ||
pg: | ||
image: postgres:alpine | ||
environment: | ||
POSTGRES_PASSWORD: Not4SecureProduction | ||
POSTGRES_USER: librespeed | ||
volumes: | ||
# mount init script from source to create database tables | ||
- ../../results/telemetry_postgresql.sql:/docker-entrypoint-initdb.d/01-init.sql | ||
|
||
speedtest-debian-pg: | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
environment: &env_vars_pg | ||
- PASSWORD=gimmeTheStats1337 | ||
- DB_HOSTNAME=pg | ||
- DB_NAME=librespeed | ||
- DB_PASSWORD=Not4SecureProduction | ||
- DB_TYPE=postgresql | ||
- DB_USERNAME=librespeed | ||
- [email protected] | ||
- ENABLE_ID_OBFUSCATION=true | ||
- MODE=standalone | ||
- REDACT_IP_ADDRESSES=true | ||
- TELEMETRY=true | ||
ports: | ||
- 9123:8080 | ||
|
||
speedtest-alpine-pg: | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile.alpine | ||
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 protected] | ||
- 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 | ||
|
||
###### SQLITE ###### | ||
speedtest-debian-sqlite: | ||
# check at http://localhost:9125/results/sanitycheck.php | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
environment: &env_vars_sqlite | ||
- PASSWORD=gimmeTheStats1337 | ||
- [email protected] | ||
- ENABLE_ID_OBFUSCATION=true | ||
- MODE=standalone | ||
- REDACT_IP_ADDRESSES=true | ||
- TELEMETRY=true | ||
ports: | ||
- 9127:8080 | ||
|
||
speedtest-alpine-sqlite: | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile.alpine | ||
environment: *env_vars_sqlite | ||
ports: | ||
- 9128:8080 |