From 64646dddf23b150ff4150fee74077e5b108ec6ae Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 23 Jan 2022 18:02:29 +0200 Subject: [PATCH] initial import --- .env.sample | 8 ++++++++ .gitignore | 1 + README.md | 24 ++++++++++++++++++++++++ compose.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..88dd5b1 --- /dev/null +++ b/.env.sample @@ -0,0 +1,8 @@ +TYPE=limesurvey + +DOMAIN=limesurvey.example.com + +## Domain aliases +#EXTRA_DOMAINS=', `www.limesurvey.example.com`' + +LETS_ENCRYPT_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..f05733f --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# limesurvey + +> One line description of the recipe + + + +* **Category**: Apps +* **Status**: 0 +* **Image**: [`limesurvey`](https://hub.docker.com/r/limesurvey), 4, upstream +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No + + + +## Quick start + +* `abra app new limesurvey --secrets` +* `abra app config ` +* `abra app deploy ` + +For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..1c7a33c --- /dev/null +++ b/compose.yml @@ -0,0 +1,46 @@ +--- +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: