para completar fiz tudo no Docker
Failed to connect to mercure port 80: Connection refused for "http://mercure/.well-known/mercure".
Fiz exatamente como no Documento.
vversion: '2'
services:
novosga:
image: novosga/novosga:2.1
restart: always
depends_on:
- mysqldb
ports:
- "80:80"
- "2020:2020"
environment:
APP_ENV: 'prod'
database connection
DATABASE_URL: 'mysql://novosga:102030xxxx@mysqldb:3306/novosga2?charset=utf8mb4&serverVersion=5.7'
default admin user
NOVOSGA_ADMIN_USERNAME: 'admin'
NOVOSGA_ADMIN_PASSWORD: 'xxxxxxxx'
NOVOSGA_ADMIN_FIRSTNAME: 'Administrator'
NOVOSGA_ADMIN_LASTNAME: 'Global'
default unity
NOVOSGA_UNITY_NAME: 'Minha unidade'
NOVOSGA_UNITY_CODE: 'U01'
default no-priority
NOVOSGA_NOPRIORITY_NAME: 'Normal'
NOVOSGA_NOPRIORITY_DESCRIPTION: 'Serviço normal'
default priority
NOVOSGA_PRIORITY_NAME: 'Prioridade'
NOVOSGA_PRIORITY_DESCRIPTION: 'Serviço prioritário'
default place
NOVOSGA_PLACE_NAME: 'Guichê'
Set TimeZone and locale
TZ: 'America/Sao_Paulo'
LANGUAGE: 'pt_BR'
mercure:
image: novosga/mercure:v0.11
restart: always
ports:
- "3000:3000"
environment:
same value from ports
SERVER_NAME: ":3000"
default publish key, must be changed
MERCURE_PUBLISHER_JWT_KEY: "!ChangeMe!"
MERCURE_EXTRA_DIRECTIVES: "anonymous 1; cors_origins *"
mysqldb:
image: mysql:5.7
restart: always
environment:
MYSQL_USER: 'novosga'
MYSQL_DATABASE: 'novosga2'
MYSQL_ROOT_PASSWORD: '102030xxxx'
MYSQL_PASSWORD: '102030xxxx'
Set TimeZone
TZ: 'America/Sao_Paulo'
Tentei no servidor mercure Windows e nada.
Foi criado no docker um container com nome de mercure então não preciso alterar configuração nenhuma no .env