Skip to content

Commit

Permalink
Update compose templates for mysql and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Dec 10, 2024
1 parent c10f9db commit b4bfbc9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
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

0 comments on commit b4bfbc9

Please sign in to comment.