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=" # - "ADMIN_PASSWORD=" - "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=" # - "MYSQL_ROOT_PASSWORD="