Sharc-Tech image using docker pull ladder99/sharc-ui:latestdocker run -d -p 80:80 ladder99/sharc-ui:latestdocker-compose.ymlversion: "3.9"
services:
sharc-ui:
image: ladder99/sharc-ui:latest
container_name: sharc_tech
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
ports:
- "80:80/tcp"
docker compose up -d in the terminaldocker-compose.yml
version: "3.9"
services:
sharc-ui:
image: ladder99/sharc-ui
container_name: sharc_tech
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "1m"
environment:
- REACT_APP_BROKER_IP=wss.sharc.tech
- REACT_APP_BROKER_PORT=443
ports:
- "80:80/tcp"
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
restart: unless-stopped
ports:
- "1883:1883/tcp"
- "9001:9001/tcp"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /home/your_username/volumes/mosquitto/config:/mosquitto/config:rw
- /home/your_username/volumes/mosquitto/data:/mosquitto/data:rw
- /home/your_username/volumes/mosquitto/log:/mosquitto/log:rw
logging:
driver: "json-file"
options:
max-size: "20m"
your_username with the username of your computerdocker compose up -d in the terminal/home/your_username/volumes/mosquitto/configmosquitto.confconnection_messages true
log_dest stdout
log_dest stderr
log_timestamp true
log_type all
max_inflight_bytes 1000000
max_inflight_messages 1
max_queued_bytes 2000000
max_queued_messages 1000
message_size_limit 1500
persistence false
queue_qos0_messages false
retain_available true
per_listener_settings true
listener 1883 0.0.0.0
protocol mqtt
allow_anonymous true
max_connections 100
socket_domain ipv4
allow_zero_length_clientid false
listener 9001 0.0.0.0
protocol websockets
allow_anonymous true
max_connections 100
socket_domain ipv4
allow_zero_length_clientid false
This will ensure that your broker is set up to allow websocket connections on port 9001
Content type
Image
Digest
sha256:309b9ca68…
Size
70.6 MB
Last updated
over 1 year ago
docker pull ladder99/sharc-ui