-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compose templates for mysql and postgres
- Loading branch information
Showing
2 changed files
with
27 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
version: "3.0" | ||
services: | ||
limesurvey: | ||
build: | ||
# Hint: Change it to 3.0/apache/ if you want to use LimeSurvey 3.* | ||
context: 6.0/apache/ | ||
dockerfile: Dockerfile | ||
volumes: | ||
# Hint: This is just an example, change /tmp to something persistent | ||
- /tmp/upload/surveys:/var/www/html/upload/surveys | ||
links: | ||
- lime-db | ||
# TODO Update storage location as desired | ||
- ./lime-data/surveys:/var/www/html/upload/surveys | ||
networks: | ||
- limesurvey-db | ||
depends_on: | ||
- lime-db | ||
ports: | ||
# Hint: Change it to 80:8080 if you are using LimeSurvey 3.* | ||
- "8080:8080" | ||
environment: | ||
- "DB_TYPE=pgsql" | ||
- "DB_PORT=5432" | ||
- "DB_HOST=lime-db" | ||
# TODO set passwords | ||
# - "DB_PASSWORD=" | ||
# - "ADMIN_PASSWORD=" | ||
lime-db: | ||
image: docker.io/postgres:10 | ||
image: postgres:17 | ||
volumes: | ||
- db-data:/var/lib/postgresql/data | ||
- ./lime-data/postgres:/var/lib/postgresql/data | ||
networks: | ||
- limesurvey-db | ||
environment: | ||
- "POSTGRES_USER=limesurvey" | ||
- "POSTGRES_DB=limesurvey" | ||
- "POSTGRES_USER=limesurvey" | ||
# TODO set passwords | ||
# - "POSTGRES_PASSWORD=" | ||
|
||
volumes: | ||
db-data: | ||
networks: | ||
limesurvey-db: | ||
driver: bridge |
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 |
---|---|---|
@@ -1,28 +1,33 @@ | ||
version: "3.0" | ||
services: | ||
limesurvey: | ||
build: | ||
context: 6.0/apache/ | ||
dockerfile: Dockerfile | ||
volumes: | ||
# Hint: This is just an example, change /tmp to something persistent | ||
- /tmp/upload/surveys:/var/www/html/upload/surveys | ||
links: | ||
- lime-db | ||
depends_on: | ||
- lime-db | ||
# TODO Update storage location as desired | ||
- ./surveys:/var/www/html/upload/surveys | ||
networks: | ||
- limesurvey-db | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- "DB_HOST=lime-db" | ||
# TODO set passwords | ||
# - "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 | ||
image: mariadb:11.4 | ||
networks: | ||
- limesurvey-db | ||
environment: | ||
- "MYSQL_USER=limesurvey" | ||
- "MYSQL_DATABASE=limesurvey" | ||
# TODO set passwords | ||
# - "MYSQL_PASSWORD=" | ||
# - "MYSQL_ROOT_PASSWORD=" | ||
|
||
networks: | ||
limesurvey-db: | ||
driver: bridge |