Skip to content

Commit

Permalink
Remove default passwords in all example files
Browse files Browse the repository at this point in the history
 - To discourage production use without changing the passwords.
  • Loading branch information
martialblog committed Oct 18, 2023
1 parent 2c34e0f commit 04d6ca4
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 39 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ For further details on the settings see: https://manual.limesurvey.org/Optional_

The easiest way to get a fully featured and functional setup is using a docker-compose file. Several examples are provided in the [repository](https://github.com/martialblog/docker-limesurvey).

**Hint:** You need to configure database and Limesurvey password in the `docker-compose` files before starting. No defaults are provided to discourage production use with default passwords.

```
docker-compose up
Expand All @@ -161,8 +163,6 @@ http://localhost:8080/
http://localhost:8080/index.php/admin
```

Please note / warning: To sign into the admin panel in the examples, the credentials are username: *admin* password: *foobar*, however, if you are planning for any use beyond testing, it is highly recommended that you use environment variables to define a secure username and password.

# Running LimeSurvey with Helm

A Helm Chart for this Image can be used for deployments. Please refer to the Helm Repository for further details:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.apache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ services:
- lime-db
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
- "PUBLIC_URL=http://my.survey.localhost:8080" # Example, Change this
- "BASE_URL=http://my.survey.localhost:8080" # Example, Change this
proxy:
Expand All @@ -24,6 +24,6 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="

6 changes: 3 additions & 3 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ services:
- DB_TYPE=pgsql
- DB_PORT=5432
- DB_HOST=db
- DB_PASSWORD=example
# - DB_PASSWORD=
- DB_NAME=limesurvey
- DB_USERNAME=limesurvey
- ADMIN_USER=admin
- ADMIN_NAME=Admin
- ADMIN_PASSWORD=example
# - ADMIN_PASSWORD=
- [email protected]
- PUBLIC_URL=foobar.com
volumes:
Expand All @@ -29,7 +29,7 @@ services:
environment:
- POSTGRES_USER=limesurvey
- POSTGRES_DB=limesurvey
- POSTGRES_PASSWORD=example
# - POSTGRES_PASSWORD=

volumes:
limesurvey:
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.fpm-certbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ services:
- lime-db
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
lime-web:
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
lime-web:
build:
context: nginx-certbot/
dockerfile: Dockerfile
Expand Down Expand Up @@ -44,7 +44,7 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="
volumes:
lime:
8 changes: 4 additions & 4 deletions docker-compose.fpm.alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ services:
- lime-db
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
lime-web:
image: docker.io/nginx:alpine
links:
Expand All @@ -32,7 +32,7 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="
volumes:
lime:
8 changes: 4 additions & 4 deletions docker-compose.fpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ services:
- lime-db
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
lime-web:
image: docker.io/nginx
links:
Expand All @@ -30,7 +30,7 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="
volumes:
lime:
6 changes: 3 additions & 3 deletions docker-compose.pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ services:
- "DB_TYPE=pgsql"
- "DB_PORT=5432"
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
lime-db:
image: docker.io/postgres:10
volumes:
- db-data:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=limesurvey"
- "POSTGRES_DB=limesurvey"
- "POSTGRES_PASSWORD=secret"
# - "POSTGRES_PASSWORD="

volumes:
db-data:
9 changes: 4 additions & 5 deletions docker-compose.traefik.domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ services:
- lime-db
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
- "PUBLIC_URL=http://my.survey.localhost:8888"
- "BASE_URL=http://my.survey.localhost:8888"
traefik:
Expand All @@ -37,6 +37,5 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"

# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="
9 changes: 4 additions & 5 deletions docker-compose.traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ services:
- "./examples/apache-example.conf:/etc/apache2/sites-available/000-default.conf:ro"
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
- "PUBLIC_URL=http://localhost:8888/limesurvey"
- "BASE_URL=http://localhost:8888/limesurvey"
traefik:
Expand All @@ -41,6 +41,5 @@ services:
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"

# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ services:
- "8080:8080"
environment:
- "DB_HOST=lime-db"
- "DB_PASSWORD=secret"
- "ADMIN_PASSWORD=foobar"
# - "DB_PASSWORD="
# - "ADMIN_PASSWORD="
# If you require an empty table prefix, use a space as the DB_TABLE_PREFIX
# - "DB_TABLE_PREFIX= "
lime-db:
image: docker.io/mysql:5.7
environment:
- "MYSQL_USER=limesurvey"
- "MYSQL_DATABASE=limesurvey"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
# - "MYSQL_PASSWORD="
# - "MYSQL_ROOT_PASSWORD="

0 comments on commit 04d6ca4

Please sign in to comment.