-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (59 loc) · 1.93 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
novosga:
image: novosga/novosga:2.1
restart: always
depends_on:
- mysqldb
ports:
- "80:80"
environment:
APP_ENV: 'prod'
# database connection
DATABASE_URL: 'mysql://novosga:MySQL_App_P4ssw0rd!@mysqldb:3306/novosga2?charset=utf8mb4&serverVersion=5.7'
# default admin user
NOVOSGA_ADMIN_USERNAME: 'admin'
NOVOSGA_ADMIN_PASSWORD: '123456'
NOVOSGA_ADMIN_FIRSTNAME: 'Administrator'
NOVOSGA_ADMIN_LASTNAME: 'Global'
# default unity
NOVOSGA_UNITY_NAME: 'My Unity'
NOVOSGA_UNITY_CODE: 'U01'
# default no-priority
NOVOSGA_NOPRIORITY_NAME: 'Normal'
NOVOSGA_NOPRIORITY_DESCRIPTION: 'Normal service'
# default priority
NOVOSGA_PRIORITY_NAME: 'Priority'
NOVOSGA_PRIORITY_DESCRIPTION: 'Priority service'
# default place
NOVOSGA_PLACE_NAME: 'Box'
# Set TimeZone and locale
TZ: 'America/Sao_Paulo'
LANGUAGE: 'pt_BR'
# Endereço Mercure para publicar mensagem (onde "mercure" é o nome do host)
# esse endereço será chamado internamente via o PHP
MERCURE_PUBLIC_URL: http://mercure:3000/.well-known/mercure
# Endereço Mercure para consumir mensagem
# esse endereço será chamado via o navegador web
MERCURE_CONSUMER_URL: http://127.0.0.1:3000/.well-known/mercure
mercure:
image: novosga/mercure:v0.11
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
ports:
- "3306:3306"
environment:
MYSQL_USER: 'novosga'
MYSQL_DATABASE: 'novosga2'
MYSQL_ROOT_PASSWORD: 'MySQL_r00t_P4ssW0rd!'
MYSQL_PASSWORD: 'MySQL_App_P4ssw0rd!'
# Set TimeZone
TZ: 'America/Sao_Paulo'