Announcement

Collapse
No announcement yet.

Specifying docker image version seems to always use latest

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Specifying docker image version seems to always use latest

    Using the dockerfile shown here, the version is 8.0.2 as of the time of this post. I changed the image from espocrm/espocrm to espocrm/espocrm:7.5.6, but the version still shows as 8.0.2. It doesn't seem possible, so I'm not sure what I am doing wrong.

    Code:
    version: '3.8'
    
    services:
    
      mysql:
        image: mysql:8
        container_name: mysql
        command: --default-authentication-plugin=mysql_native_password
        environment:
          MYSQL_ROOT_PASSWORD: root_password
          MYSQL_DATABASE: espocrm
          MYSQL_USER: espocrm
          MYSQL_PASSWORD: database_password
        volumes:
          - mysql:/var/lib/mysql
        restart: always
    
      espocrm:
        image: espocrm/espocrm:7.5.6
        container_name: espocrm
        environment:
          ESPOCRM_DATABASE_HOST: mysql
          ESPOCRM_DATABASE_USER: espocrm
          ESPOCRM_DATABASE_PASSWORD: database_password
          ESPOCRM_ADMIN_USERNAME: admin
          ESPOCRM_ADMIN_PASSWORD: password
          ESPOCRM_SITE_URL: "http://localhost:8080"
        volumes:
          - espocrm:/var/www/html
        restart: always
        ports:
          - 8080:80
    
      espocrm-daemon:
        image: espocrm/espocrm:7.5.6
        container_name: espocrm-daemon
        volumes:
          - espocrm:/var/www/html
        restart: always
        entrypoint: docker-daemon.sh
    
      espocrm-websocket:
        image: espocrm/espocrm:7.5.6
        container_name: espocrm-websocket
        environment:
          ESPOCRM_CONFIG_USE_WEB_SOCKET: "true"
          ESPOCRM_CONFIG_WEB_SOCKET_URL: "ws://localhost:8082"
          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:
          - espocrm:/var/www/html
        restart: always
        entrypoint: docker-websocket.sh
        ports:
          - 8082:8080
    
    volumes:
      mysql:
      espocrm:​
    Code:
    $ docker compose -f espocrm-default-compose.yml up -d --build
    [+] Building 0.0s (0/0) docker:desktop-linux
    [+] Running 4/0
    ✔ Container espocrm-websocket Running 0.0s
    ✔ Container mysql Running 0.0s
    ✔ Container espocrm Running 0.0s
    ✔ Container espocrm-daemon Running​
    Click image for larger version

Name:	Screenshot 2023-10-20 at 09.26.18.png
Views:	238
Size:	22.9 KB
ID:	98838

    Click image for larger version

Name:	Screenshot 2023-10-20 at 09.26.32.png
Views:	119
Size:	59.7 KB
ID:	98839

    Click image for larger version

Name:	Screenshot 2023-10-20 at 09.26.47.png
Views:	114
Size:	51.6 KB
ID:	98840

  • #2
    I figured it out. For anyone else who doesn't actually know how to use docker, you need to delete the volume after changing the image. That makes zero sense to me, but whatever. It works now.

    Comment

    Working...
    X