47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
limesurvey:
|
|
image: martialblog/limesurvey:5.2.9-220110-apache
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
volumes:
|
|
# Unfortunately the StripPrefix Function in Traefik won't work;
|
|
# Meaning, we will have to set 'Alias /limesurvey "/var/www/html"' in the Apache Config
|
|
- "./examples/apache-example.conf:/etc/apache2/sites-available/000-default.conf:ro"
|
|
environment:
|
|
- "DB_HOST=${STACK_NAME}_db"
|
|
- "DB_PASSWORD=secret"
|
|
- "ADMIN_PASSWORD=foobar"
|
|
- "PUBLIC_URL=https://${DOMAIN}"
|
|
- "BASE_URL=https://${DOMAIN}"
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
|
- "coop-cloud.${STACK_NAME}.version="
|
|
db:
|
|
image: mysql:5.7
|
|
networks:
|
|
- internal
|
|
environment:
|
|
- "MYSQL_USER=limesurvey"
|
|
- "MYSQL_DATABASE=limesurvey"
|
|
- "MYSQL_PASSWORD=secret"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|