mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
version: "3.0"
|
|
services:
|
|
limesurvey:
|
|
build:
|
|
context: 6.0/apache/
|
|
dockerfile: Dockerfile
|
|
labels:
|
|
traefik.enable: 'true'
|
|
traefik.http.routers.limesurvey-http-router.entrypoints: "http"
|
|
traefik.http.routers.limesurvey-http-router.rule: "Host(`my.survey.localhost`)"
|
|
traefik.http.services.limesurvey-service.loadbalancer.server.port: "8080"
|
|
links:
|
|
- lime-db
|
|
depends_on:
|
|
- lime-db
|
|
environment:
|
|
- "DB_HOST=lime-db"
|
|
- "DB_PASSWORD=secret"
|
|
- "ADMIN_PASSWORD=foobar"
|
|
- "PUBLIC_URL=http://my.survey.localhost:8888"
|
|
- "BASE_URL=http://my.survey.localhost:8888"
|
|
traefik:
|
|
image: docker.io/traefik:v2.9
|
|
container_name: "traefik"
|
|
command:
|
|
- "--api.insecure=true"
|
|
- "--providers.docker=true"
|
|
- "--providers.docker.exposedbydefault=false"
|
|
- "--entrypoints.http.address=:8888"
|
|
ports:
|
|
- "8888:8888"
|
|
- "8080:8080"
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
lime-db:
|
|
image: docker.io/mysql:5.7
|
|
environment:
|
|
- "MYSQL_USER=limesurvey"
|
|
- "MYSQL_DATABASE=limesurvey"
|
|
- "MYSQL_PASSWORD=secret"
|
|
- "MYSQL_ROOT_PASSWORD=secret"
|
|
|