-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml.sample.deprecated-v0.3.0
124 lines (100 loc) · 4.02 KB
/
docker-compose.yml.sample.deprecated-v0.3.0
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
####
# This version of docker-compose.yml has been deprecated.
####
networks:
app-tier:
driver: bridge
services:
app:
image: node:18-alpine
command: sh -c "npm install && npm run build && npm run start"
ports:
- 3000:3000
working_dir: /app
volumes:
- ./:/app
depends_on:
- db
networks:
- app-tier
environment:
############################################################
## The following variables NEED to be set before execution.
############################################################
NEXT_PUBLIC_BASE_URL: "http://localhost:3000/"
#DB_PASS and MYSQL_ROOT_PASSWORD must be the same.
DB_PASS: "root"
#DB_NAME and MYSQL_DATABASE must be the same.
DB_NAME: sample_install_mmdm
## AES Encryption Password
## This is used to encrypt CalDAV passwords in the database.
AES_PASSWORD : NEW_AES_PASSWORD
############################################################
## The following variables aren't required for basic functionality,
## but might be required to be set for some additional features.
############################################################
SMTP_HOST : smtp.example.com
SMTP_USERNAME : example@example.comm
SMTP_PASSWORD : password
SMTP_FROMEMAIL : example@example.comm
SMTP_PORT : 587
SMTP_USESECURE : "false"
############################################################
## The following variables aren't required to be set,
## but affect behaviour that you might want to customise.
############################################################
# User Config
NEXT_PUBLIC_DISABLE_USER_REGISTRATION: "false"
# After this value, old ssid will be deleted.
MAX_CONCURRENT_LOGINS_ALLOWED: 5
# Maxium length of OTP validity, in seconds.
MAX_OTP_VALIDITY: 1800
# Maximum length of a login session in seconds.
MAX_SESSION_LENGTH: 2592000
# Enforce max length of session.
ENFORCE_SESSION_TIMEOUT: "true"
############################################################
## The following variables are advanced settings,
## and must be only changed in case you're trying something
## specific.
############################################################
DB_USER: "root"
DB_HOST: db
DB_CHARSET: "utf8mb4"
DB_COLLATE: "utf8mb4_0900_ai_ci"
# Whether user is running install from a docker image.
DOCKER_INSTALL: "true"
NEXT_PUBLIC_API_URL: "http://localhost:3000/api/"
NEXT_PUBLIC_DEBUG_MODE: "true"
#Max number of recursions for finding subtasks. Included so the recursive function doesn't go haywire.
#If subtasks are not being rendered properly, try increasing the value.
NEXT_PUBLIC_SUBTASK_RECURSION_CONTROL_VAR: 100
## Test Mode
NEXT_PUBLIC_TEST_MODE: "false"
############################################################
## The following variables must not be changed.
############################################################
NEXT_PUBLIC_VERSION_NUMBER: "0.1.6"
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
expose:
- 3306
networks:
- app-tier
environment:
############################################################
## The following variables NEED to be set before execution.
############################################################
#DB_NAME and MYSQL_DATABASE must be the same.
MYSQL_DATABASE: sample_install_mmdm
#DB_PASS and MYSQL_ROOT_PASSWORD must be the same.
MYSQL_ROOT_PASSWORD: root
############################################################
## The following variables are advanced settings,
## and must be only changed in case you're trying something
## specific.
############################################################
MYSQL_ALLOW_EMPTY_PASSWORD: ok
MYSQL_ROOT_HOST: '%'