docker run --name mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:8
docker run --name my-espocrm -e ESPOCRM_SITE_URL=http://172.20.0.100:8080 -p 8080:80 --link mysql:mysql -d espocrm/espocrm
docker ps
а какая страница показывается?
А порт приложение слушает или нет?
Возможно прав не хватает
docker logs my-espocrm
инфа обновилась, теперь это пишет:Run "install" action.
Start EspoCRM installation
End EspoCRM installation
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this message
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: espocrm
MYSQL_USER: espocrm
MYSQL_PASSWORD: database_password
ESPOCRM_DATABASE_PLATFORM: Mysql
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"
version: '3.8'
services:
mysql:
image: mysql:8
container_name: mysql
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
container_name: espocrm
environment:
ESPOCRM_DATABASE_PLATFORM: Mysql
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
container_name: espocrm-daemon
volumes:
- espocrm:/var/www/html
restart: always
entrypoint: docker-daemon.sh
espocrm-websocket:
image: espocrm/espocrm
container_name: espocrm-websocket
environment:
ESPOCRM_CONFIG_USE_WEB_SOCKET: "true"
ESPOCRM_CONFIG_WEB_SOCKET_URL: "ws://localhost:8081"
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:
- 8081:8080
volumes:
mysql:
espocrm:
docker-compose up -d
ESPOCRM_SITE_URL: "localhost:8080"
docker-compose up -dв выводе ошибки:
Creating espocrm-websocket ...
Creating espocrm ...
Creating mysql ... error
Creating espocrm-daemon ...
Creating espocrm ... error
to remove (or rename) that container to be able to reuse that name.
Creating espocrm-websocket ... done
ERROR: for espocrm Cannot start service espocrm: driver failed programming external connectivity on endpoint espocrm (d2e738ae4906e44d1718e2c1c854028d2e12750fa8cf8a09f02d26dbee8302e3): Bind for 0.0.0.0:808Creating espocrm-daemon ... done
ERROR: for mysql Cannot create container for service mysql: Conflict. The container name "/mysql" is already in use by container "b921fd978a8652d9d1a6d297150e07e07af3d13274885e46b09f37b8e4b41fb2". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for espocrm Cannot start service espocrm: driver failed programming external connectivity on endpoint espocrm (d2e738ae4906e44d1718e2c1c854028d2e12750fa8cf8a09f02d26dbee8302e3): Bind for 0.0.0.0:8080 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.