@@ -5,28 +5,34 @@ services:
5
5
# # Start services required for Lowcoder (MongoDB and Redis)
6
6
# #
7
7
mongodb :
8
- image : " mongo:4.4 "
8
+ image : " mongo:7.0.1 "
9
9
container_name : mongodb
10
+ restart : unless-stopped
11
+ # Enabled ports to be able to access mongodb from host
12
+ # ports:
13
+ # - "27017:27017"
10
14
environment :
11
15
MONGO_INITDB_DATABASE : lowcoder
12
16
MONGO_INITDB_ROOT_USERNAME : lowcoder
13
17
MONGO_INITDB_ROOT_PASSWORD : secret123
14
- # Uncomment to save database data into local 'mongodata' folder
15
- # volumes:
16
- # - ./mongodata:/data/db
17
- restart : unless-stopped
18
+ volumes :
19
+ - ./lowcoder-stacks/data/mongodb:/data/db
18
20
19
21
redis :
20
22
image : redis:7-alpine
21
23
container_name : redis
22
-
24
+ restart : unless-stopped
25
+ # Enabled ports to be able to access redis from host
26
+ # ports:
27
+ # - "6379:6379"
23
28
24
29
# #
25
30
# # Start Lowcoder backend services (api-service and node-service)
26
31
# #
27
32
lowcoder-api-service :
28
33
image : lowcoderorg/lowcoder-ce-api-service:latest
29
34
container_name : lowcoder-api-service
35
+ restart : unless-stopped
30
36
# Enabled ports to be able to access backend from host
31
37
# ports:
32
38
# - "8080:8080"
@@ -61,32 +67,34 @@ services:
61
67
LOWCODER_API_KEY_SECRET : " 5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
62
68
LOWCODER_WORKSPACE_MODE : SAAS
63
69
# Lowcoder notification emails setup
64
- LOWCODER_ADMIN_SMTP_HOST : smtp.gmail.com
70
+ LOWCODER_ADMIN_SMTP_HOST : localhost
65
71
LOWCODER_ADMIN_SMTP_PORT : 587
66
- LOWCODER_ADMIN_SMTP_USERNAME :
72
+ LOWCODER_ADMIN_SMTP_USERNAME : info@localhost
67
73
LOWCODER_ADMIN_SMTP_PASSWORD :
68
- LOWCODER_ADMIN_SMTP_AUTH : true
69
- LOWCODER_ADMIN_SMTP_SSL_ENABLED : false
70
- LOWCODER_ADMIN_SMTP_STARTTLS_ENABLED : true
71
- LOWCODER_ADMIN_SMTP_STARTTLS_REQUIRED : true
74
+ LOWCODER_ADMIN_SMTP_AUTH : " true"
75
+ LOWCODER_ADMIN_SMTP_SSL_ENABLED : " false"
76
+ LOWCODER_ADMIN_SMTP_STARTTLS_ENABLED : " true"
77
+ LOWCODER_ADMIN_SMTP_STARTTLS_REQUIRED : " true"
72
78
# Email used as sender in lost password email
73
79
LOWCODER_EMAIL_NOTIFICATIONS_SENDER : info@localhost
74
- restart : unless-stopped
80
+ volumes :
81
+ - ./lowcoder-stacks/data/mongodb:/data/db
82
+ - ./lowcoder-stacks/assets:/lowcoder/assets
75
83
depends_on :
76
84
- mongodb
77
85
- redis
78
86
79
87
lowcoder-node-service :
80
88
image : lowcoderorg/lowcoder-ce-node-service:latest
81
89
container_name : lowcoder-node-service
90
+ restart : unless-stopped
82
91
# Enabled ports to be able to access backend from host
83
92
# ports:
84
93
# - "6060:6060"
85
94
environment :
86
95
LOWCODER_PUID : " 9001"
87
96
LOWCODER_PGID : " 9001"
88
97
LOWCODER_API_SERVICE_URL : " http://lowcoder-api-service:8080"
89
- restart : unless-stopped
90
98
depends_on :
91
99
- lowcoder-api-service
92
100
@@ -96,6 +104,7 @@ services:
96
104
lowcoder-frontend :
97
105
image : lowcoderorg/lowcoder-ce-frontend:latest
98
106
container_name : lowcoder-frontend
107
+ restart : unless-stopped
99
108
ports :
100
109
- " 3000:3000"
101
110
environment :
@@ -105,11 +114,9 @@ services:
105
114
LOWCODER_MAX_QUERY_TIMEOUT : 120
106
115
LOWCODER_API_SERVICE_URL : " http://lowcoder-api-service:8080"
107
116
LOWCODER_NODE_SERVICE_URL : " http://lowcoder-node-service:6060"
108
- restart : unless-stopped
109
117
depends_on :
110
118
- lowcoder-node-service
111
119
- lowcoder-api-service
112
- # Uncomment to serve local files as static assets
113
- # volumes:
114
- # - ./static-assets:/lowcoder/assets
120
+ volumes :
121
+ - ./lowcoder-stacks/assets:/lowcoder/assets
115
122
0 commit comments