version: "2" services: mysql: image: mysql container_name: mysql volumes: - ./mysql:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=password ports: - "3306:3306" andrea-openldap: image: andrea/openldap build: ./images/openldap openldap: image: karmen-openldap build: ./images/karmen-openldap container_name: openldap tty: true stdin_open: true volumes: - ./openldap/ldap:/var/lib/ldap - ./openldap/slapd.d:/etc/ldap/slapd.d - ./openldap/certs:/container/service/slapd/assets/certs/ ports: - "389:389" - "636:636" domainname: "foo.org" # important: same as hostname hostname: "foo.org" phpldapadmin: image: osixia/phpldapadmin:latest container_name: phpldapadmin environment: PHPLDAPADMIN_LDAP_HOSTS: "openldap" PHPLDAPADMIN_HTTPS: "false" ports: - "8080:80" depends_on: - openldap limesurvey: restart: always image: crramirez/limesurvey:latest container_name: limesurvey volumes: - ./limesurvey/data:/var/lib/mysql - ./limesurvey/upload:/app/upload ports: - 8081:80 owncloud: restart: always image: owncloud container_name: owncloud volumes: - ./owncloud/config:/var/www/html/config - ./owncloud/data:/var/www/html/data ports: - 8082:80 compiler: container_name: compiler image: karmen/compiler ports: - 8083:8080