# MODE: letsencrypt # VERSION: 2.4.0 version: '3' services: espocrm-db: image: mariadb:latest container_name: espocrm-db command: --max-allowed-packet=64MB restart: always environment: MARIADB_ROOT_PASSWORD: 8b22244a8082e5cb54ec MARIADB_DATABASE: espocrm MARIADB_USER: espocrm MARIADB_PASSWORD: bf0ac817d464398ca054 volumes: - ./data/mariadb/data:/var/lib/mysql networks: - espocrm-network espocrm-nginx: image: nginx container_name: espocrm-nginx environment: NGINX_HOST: se.ecrm.lol restart: always depends_on: - espocrm - espocrm-websocket - espocrm-phpmyadmin volumes: - ./data/nginx/conf.d/:/etc/nginx/templates - ./data/espocrm:/var/www/html - ./data/phpmyadmin:/var/www/phpmyadmin - ./data/nginx/espocrm.conf:/etc/nginx/espocrm.conf - ./data/nginx/logs:/var/log/nginx - ./data/nginx/ssl:/etc/nginx/ssl:ro - ./data/nginx/certbot:/var/www/certbot ports: - "80:80" - "443:443" networks: - espocrm-network espocrm: image: espocrm/espocrm:fpm container_name: espocrm environment: ESPOCRM_DATABASE_HOST: espocrm-db ESPOCRM_DATABASE_USER: espocrm ESPOCRM_DATABASE_PASSWORD: bf0ac817d464398ca054 ESPOCRM_ADMIN_USERNAME: admin ESPOCRM_ADMIN_PASSWORD: b5c1047fbcf2 ESPOCRM_CONFIG_SITE_URL: "https://se.ecrm.lol" restart: always depends_on: - espocrm-db volumes: - ./data/espocrm:/var/www/html networks: - espocrm-network espocrm-phpmyadmin: depends_on: - espocrm-db image: phpmyadmin/phpmyadmin:fpm container_name: espocrm-phpmyadmin restart: always ports: - "8090:8090" volumes: - ./data/phpmyadmin:/var/www/phpmyadmin environment: PMA_ARBITRARY: 1 MARIADB_ROOT_PASSWORD: 8b22244a8082e5cb54ec MARIADB_DATABASE: espocrm MARIADB_USER: espocrm MARIADB_PASSWORD: bf0ac817d464398ca054 networks: - espocrm-network espocrm-daemon: image: espocrm/espocrm:fpm container_name: espocrm-daemon volumes: - ./data/espocrm:/var/www/html restart: always depends_on: - espocrm entrypoint: docker-daemon.sh networks: - espocrm-network espocrm-websocket: container_name: espocrm-websocket image: espocrm/espocrm:fpm environment: ESPOCRM_CONFIG_USE_WEB_SOCKET: "true" ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBSCRIBER_DSN: "tcp://*:7777" ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBMISSION_DSN: "tcp://espocrm-websocket:7777" volumes: - ./data/espocrm:/var/www/html restart: always depends_on: - espocrm entrypoint: docker-websocket.sh ports: - "8080:8080" networks: - espocrm-network espocrm-certbot: image: certbot/certbot container_name: espocrm-certbot volumes: - ./data/nginx/ssl:/etc/letsencrypt - ./data/nginx/certbot:/var/www/certbot command: certonly --webroot --webroot-path=/var/www/certbot --keep --agree-tos --rsa-key-size 4096 --email trungtvmso@gmail.com --no-eff-email -d se.ecrm.lol networks: espocrm-network: driver: bridge