version: "3" services: cyrange: image: cylab/cyrange:1.0.0-RC6 container_name: cyrange depends_on: - redis - mysql ports: - 8080:80 volumes: - cyrange:/var/www/html/storage - /opt/cyrange/images:/var/www/html/storage/app/images entrypoint: docker/start.sh env_file: cyrange.env queue: image: cylab/cyrange:1.0.0-RC6 container_name: queue depends_on: - cyrange volumes: - cyrange:/var/www/html/storage - /opt/cyrange/images:/var/www/html/storage/app/images entrypoint: php /var/www/html/artisan queue:work --verbose --tries=3 --timeout=60 env_file: cyrange.env scheduler: image: cylab/cyrange:1.0.0-RC6 container_name: scheduler depends_on: - cyrange entrypoint: sh -c "while true; do php /var/www/html/artisan schedule:run --verbose & sleep 60; done" env_file: cyrange.env redis: image: redis:4-alpine container_name: redis volumes: - redis:/data mysql: image: mysql:5.7 container_name: mysql volumes: - mysql:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: cyrange guacd: image: guacamole/guacd:1.3.0 container_name: guacd guacamole: image: guacamole/guacamole:1.3.0 container_name: guacamole depends_on: - guacd - guacamole-mysql environment: GUACD_HOSTNAME: guacd MYSQL_HOSTNAME: guacamole-mysql MYSQL_USER: root MYSQL_PASSWORD: root MYSQL_DATABASE: guacamole ports: - 8081:8080 guacamole-mysql: image: mysql:5.7 container_name: guacamole-mysql volumes: - guacamole-mysql:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: guacamole volumes: cyrange: driver: "local" redis: driver: "local" mysql: driver: "local" guacamole-mysql: driver: "local"