Skip to content

Commit de46c1a

Browse files
committed
fix: added new and missing environment variables. Added volumes to multi-image compose.
1 parent 86db129 commit de46c1a

File tree

2 files changed

+31
-11
lines changed

2 files changed

+31
-11
lines changed

deploy/docker/docker-compose-multi.yaml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ services:
55
## Start services required for Lowcoder (MongoDB and Redis)
66
##
77
mongodb:
8-
image: "mongo:4.4"
8+
image: "mongo:7.0"
99
container_name: mongodb
1010
environment:
1111
MONGO_INITDB_DATABASE: lowcoder
1212
MONGO_INITDB_ROOT_USERNAME: lowcoder
1313
MONGO_INITDB_ROOT_PASSWORD: secret123
14-
# Uncomment to save database data into local 'mongodata' folder
15-
# volumes:
16-
# - ./mongodata:/data/db
14+
volumes:
15+
- ./lowcoder-stacks/data/mongodb:/data/db
1716
restart: unless-stopped
1817

1918
redis:
2019
image: redis:7-alpine
2120
container_name: redis
21+
restart: unless-stopped
2222

2323

2424
##
@@ -31,12 +31,14 @@ services:
3131
# ports:
3232
# - "8080:8080"
3333
environment:
34+
LOWCODER_PUBLIC_URL: "http://localhost:3000/"
3435
LOWCODER_PUID: "9001"
3536
LOWCODER_PGID: "9001"
3637
LOWCODER_MONGODB_URL: "mongodb://lowcoder:secret123@mongodb/lowcoder?authSource=admin"
3738
LOWCODER_REDIS_URL: "redis://redis:6379"
3839
LOWCODER_NODE_SERVICE_URL: "http://lowcoder-node-service:6060"
3940
LOWCODER_MAX_QUERY_TIMEOUT: 120
41+
LOWCODER_MAX_REQUEST_SIZE: 20m
4042
LOWCODER_EMAIL_AUTH_ENABLED: "true"
4143
LOWCODER_EMAIL_SIGNUP_ENABLED: "true"
4244
LOWCODER_CREATE_WORKSPACE_ON_SIGNUP: "true"
@@ -59,22 +61,33 @@ services:
5961
# - on linux/mac, generate one eg. with: head /dev/urandom | head -c 30 | shasum -a 256
6062
#
6163
LOWCODER_API_KEY_SECRET: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
64+
LOWCODER_PLUGINS_DIR: "../plugins"
65+
LOWCODER_API_RATE_LIMIT: 50
6266
LOWCODER_WORKSPACE_MODE: SAAS
67+
LOWCODER_MARKETPLACE_PRIVATE_MODE: "true"
6368
# Lowcoder notification emails setup
6469
LOWCODER_ADMIN_SMTP_HOST: smtp.gmail.com
6570
LOWCODER_ADMIN_SMTP_PORT: 587
6671
LOWCODER_ADMIN_SMTP_USERNAME:
6772
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
73+
LOWCODER_ADMIN_SMTP_AUTH: "true"
74+
LOWCODER_ADMIN_SMTP_SSL_ENABLED: "false"
75+
LOWCODER_ADMIN_SMTP_STARTTLS_ENABLED: "true"
76+
LOWCODER_ADMIN_SMTP_STARTTLS_REQUIRED: "true"
7277
# Email used as sender in lost password email
7378
LOWCODER_EMAIL_NOTIFICATIONS_SENDER: info@localhost
79+
# Lowcoder superuser details
80+
LOWCODER_SUPERUSER_USERNAME: admin@localhost
81+
# If left blank, a password will be generated and written into api-service log
82+
LOWCODER_SUPERUSER_PASSWORD:
7483
restart: unless-stopped
7584
depends_on:
7685
- mongodb
7786
- redis
87+
volumes:
88+
- ./lowcoder-stacks:/lowcoder-stacks
89+
- ./lowcoder-stacks/assets:/lowcoder/assets
90+
7891

7992
lowcoder-node-service:
8093
image: lowcoderorg/lowcoder-ce-node-service:latest
@@ -109,7 +122,6 @@ services:
109122
depends_on:
110123
- lowcoder-node-service
111124
- lowcoder-api-service
112-
# Uncomment to serve local files as static assets
113-
# volumes:
114-
# - ./static-assets:/lowcoder/assets
125+
volumes:
126+
- ./lowcoder-stacks/assets:/lowcoder/assets
115127

deploy/docker/docker-compose.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ services:
2626
LOWCODER_NODE_SERVICE_ENABLED: "true"
2727
LOWCODER_FRONTEND_ENABLED: "true"
2828
# generic parameters
29+
# Effective user and group IDs
2930
LOWCODER_PUID: "1000"
3031
LOWCODER_PGID: "1000"
3132
# api-service parameters
@@ -55,12 +56,15 @@ services:
5556
#
5657
LOWCODER_API_KEY_SECRET: "5a41b090758b39b226603177ef48d73ae9839dd458ccb7e66f7e7cc028d5a50b"
5758
# api and node service parameters
59+
LOWCODER_PLUGINS_DIR: "../plugins"
60+
LOWCODER_API_RATE_LIMIT: 50
5861
LOWCODER_API_SERVICE_URL: "http://localhost:8080"
5962
LOWCODER_NODE_SERVICE_URL: "http://localhost:6060"
6063
# frontend parameters
6164
LOWCODER_MAX_REQUEST_SIZE: 20m
6265
LOWCODER_MAX_QUERY_TIMEOUT: 120
6366
LOWCODER_WORKSPACE_MODE: SAAS
67+
LOWCODER_MARKETPLACE_PRIVATE_MODE: "true"
6468
# Lowcoder notification emails setup
6569
LOWCODER_ADMIN_SMTP_HOST: localhost
6670
LOWCODER_ADMIN_SMTP_PORT: 587
@@ -72,6 +76,10 @@ services:
7276
LOWCODER_ADMIN_SMTP_STARTTLS_REQUIRED: "true"
7377
# Email used as sender in lost password email
7478
LOWCODER_EMAIL_NOTIFICATIONS_SENDER: info@localhost
79+
# Lowcoder superuser details
80+
LOWCODER_SUPERUSER_USERNAME: admin@localhost
81+
# If left blank, a password will be generated and written into log (lowcoder-stacks/logs/api-service/api-service.log)
82+
LOWCODER_SUPERUSER_PASSWORD:
7583
volumes:
7684
- ./lowcoder-stacks:/lowcoder-stacks
7785
- ./lowcoder-stacks/assets:/lowcoder/assets

0 commit comments

Comments
 (0)