Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2.1"
- # Creates Limesurvey container, uses existing shared MariaDB database and phpMyAdmin
- services:
- limesurvey:
- image: acspri/limesurvey
- container_name: limesurvey
- hostname: limesurvey
- restart: always
- # Connect to the database container's network
- networks:
- - mysql-net
- ports:
- # Port 8082 is one I chose for external addressing to Limesurvey container, 80 is it's internal to container port
- # Newer versions omit the port mapping altogether, as NginxProxyManager can address the container by name instead
- # of neding IP:port as address
- - "8082:80"
- volumes:
- - limeplugins:/var/www/html/plugins
- - limeupload:/var/www/html/upload
- - limeconfig:/var/www/html/application/config
- environment:
- # Addresses the existing database container by it's name ie. db
- LIMESURVEY_DB_HOST: db
- # FIRST create an empty database with this name in phpMyAdmin BEFORE spinning up container. If you don't
- # create it manually, thios container creation will fail to connect to database
- LIMESURVEY_DB_NAME: limesurvey
- # Use root ID to prevent creating new user too
- LIMESURVEY_DB_USER: root
- LIMESURVEY_DB_PASSWORD: rootdbpassword # Put yours in here
- LIMESURVEY_ADMIN_USER: admin
- LIMESURVEY_ADMIN_PASSWORD: adminuserspassword # Put yours in here
- LIMESURVEY_ADMIN_NAME: Lime Administrator
- LIMESURVEY_ADMIN_EMAIL: e-mail address for admin # Put yours in here
- # Limit log file size and rotate
- logging:
- driver: "json-file"
- options:
- max-size: "10m"
- max-file: "10"
- volumes:
- limeplugins:
- # Specify name so it does not append stack name
- name: limeplugins
- limeupload:
- # Specify name so it does not append stack name
- name: limeupload
- limeconfig:
- # Specify name so it does not append stack name
- name: limeconfig
- networks:
- mysql-net:
- # Joins existing network of this name
- external: true
- # Specify name so that it does not append stack name
- name: mysql-net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement