Advertisement
gadgeteerza

Limesurvey Docker-Compose file

Oct 25th, 2022
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.06 KB | Source Code | 0 0
  1. version: "2.1"
  2. # Creates Limesurvey container, uses existing shared MariaDB database and phpMyAdmin
  3. services:
  4.   limesurvey:
  5.     image: acspri/limesurvey
  6.     container_name: limesurvey
  7.     hostname: limesurvey
  8.     restart: always
  9.     # Connect to the database container's network
  10.     networks:
  11.      - mysql-net
  12.     ports:
  13.         # Port 8082 is one I chose for external addressing to Limesurvey container, 80 is it's internal to container port
  14.         # Newer versions omit the port mapping altogether, as NginxProxyManager can address the container by name instead
  15.         # of neding IP:port as address
  16.       - "8082:80"
  17.     volumes:
  18.      - limeplugins:/var/www/html/plugins
  19.       - limeupload:/var/www/html/upload
  20.       - limeconfig:/var/www/html/application/config
  21.     environment:
  22.       # Addresses the existing database container by it's name ie. db
  23.       LIMESURVEY_DB_HOST: db
  24.       # FIRST create an empty database with this name in phpMyAdmin BEFORE spinning up container. If you don't
  25.       # create it manually, thios container creation will fail to connect to database
  26.       LIMESURVEY_DB_NAME: limesurvey
  27.       # Use root ID to prevent creating new user too
  28.       LIMESURVEY_DB_USER: root
  29.       LIMESURVEY_DB_PASSWORD: rootdbpassword # Put yours in here
  30.       LIMESURVEY_ADMIN_USER: admin
  31.       LIMESURVEY_ADMIN_PASSWORD: adminuserspassword # Put yours in here
  32.       LIMESURVEY_ADMIN_NAME: Lime Administrator
  33.       LIMESURVEY_ADMIN_EMAIL: e-mail address for admin # Put yours in here
  34.     # Limit log file size and rotate
  35.     logging:
  36.       driver: "json-file"
  37.       options:
  38.         max-size: "10m"
  39.         max-file: "10"
  40.  
  41. volumes:
  42.   limeplugins:
  43.    # Specify name so it does not append stack name
  44.     name: limeplugins
  45.   limeupload:
  46.    # Specify name so it does not append stack name
  47.     name: limeupload
  48.   limeconfig:
  49.    # Specify name so it does not append stack name
  50.     name: limeconfig
  51.  
  52. networks:
  53.   mysql-net:
  54.    # Joins existing network of this name
  55.     external: true
  56.     # Specify name so that it does not append stack name
  57.     name: mysql-net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement