Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compose templates for mysql and postgres #199

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions docker-compose.pgsql.yml
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
21 changes: 13 additions & 8 deletions docker-compose.yml
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
Loading