64 lines
2.2 KiB
Django/Jinja
64 lines
2.2 KiB
Django/Jinja
---
|
|
services:
|
|
limesurvey:
|
|
image: adamzammit/limesurvey:${LIMESURVEY_VERSION}
|
|
container_name: limesurvey
|
|
restart: always
|
|
networks:
|
|
traefik:
|
|
limesurvey:
|
|
volumes:
|
|
- ./data/plugins:/var/www/html/plugins
|
|
- ./data/upload:/var/www/html/upload
|
|
- ./data/config:/var/www/html/application/config
|
|
- ./data/sessions:/var/lime/sessions
|
|
- ./data/images/logo.png:/var/www/html/assets/images/logo-icon-white.png
|
|
- ./data/images/logo.png:/var/www/html/assets/images/Limesurvey_logo-big.png
|
|
- ./data/images/logo.png:/var/www/html/assets/images/Logo_LimeSurvey.png
|
|
- ./data/images/logo.png:/var/www/html/assets/images/__Limesurvey_logo.png
|
|
- ./data/images/logo.png:/var/www/html/assets/images/logo-white.png
|
|
- ./data/images/logo.png:/var/www/html/tmp/assets/aa2d5407/survey_list_header.png
|
|
environment:
|
|
LIMESURVEY_DB_PASSWORD: ${MARIADB_PASSWORD}
|
|
LIMESURVEY_ADMIN_USER: ${LIMESURVEY_USER}
|
|
LIMESURVEY_ADMIN_PASSWORD: ${LIMESURVEY_PASSWORD}
|
|
LIMESURVEY_ADMIN_NAME: ${LIMESURVEY_NAME}
|
|
LIMESURVEY_ADMIN_EMAIL: ${LIMESURVEY_EMAIL}
|
|
TZ: Europe/Berlin
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.limesurvey.entrypoints=https"
|
|
- "traefik.http.routers.limesurvey.rule=Host(`${LIMESURVEY_DOMAIN}`)"
|
|
- "traefik.http.routers.limesurvey.tls=true"
|
|
- "traefik.http.routers.limesurvey.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.limesurvey.loadbalancer.server.port=80"
|
|
- "traefik.docker.network=traefik"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS -m 5 http://127.0.0.1/ >/dev/null || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
|
|
mysql:
|
|
image: mariadb:${MARIADB_VERSION}
|
|
container_name: limesurvey_db
|
|
restart: always
|
|
networks:
|
|
limesurvey:
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MARIADB_PASSWORD}
|
|
volumes:
|
|
- ./data/mysql:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 60s
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
limesurvey:
|
|
driver: bridge
|