-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
191 lines (173 loc) · 5.38 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
version: '3.8'
services:
appsmith:
image: appsmith/appsmith-ee
restart: always
container_name: appsmith
hostname: appsmith
environment:
# Database Configuration
# - APPSMITH_DB_URL=mongodb://admin:admin@mongo:27017/appsmith?authSource=admin
- APPSMITH_DB_URL=mongodb://admin:admin@mongo1:27017/appsmith?replicaSet=rs0&authSource=admin
- APPSMITH_REDIS_URI=redis://redis:6379
# Encryption Configuration
- APPSMITH_ENCRYPTION_PASSWORD=alberto
- APPSMITH_ENCRYPTION_SALT=arandomsalt
# Application Settings
- APPSMITH_INSTANCE_NAME=AppSmith
# Security Settings
- APPSMITH_SIGNUP_DISABLED=true
- APPSMITH_ADMIN_EMAILS=oksbwn@gmail.com
# Email Configuration
# - APPSMITH_MAIL_ENABLED=true
# - APPSMITH_MAIL_FROM=noreply@yourdomain.com
# - APPSMITH_REPLY_TO=support@yourdomain.com
# - APPSMITH_MAIL_HOST=smtp.yourdomain.com
# - APPSMITH_MAIL_PORT=587
# - APPSMITH_MAIL_SMTP_AUTH=true
# - APPSMITH_MAIL_USERNAME=your_smtp_username
# - APPSMITH_MAIL_PASSWORD=your_smtp_password
# - APPSMITH_MAIL_TLS_ENABLED=true
# S3/MinIO Configuration
# - APPSMITH_S3_ACCESS_KEY=minio_access_key
# - APPSMITH_S3_SECRET_KEY=minio_secret_key
# - APPSMITH_S3_BUCKET_NAME=appsmith-bucket
# - APPSMITH_S3_REGION=us-east-1
# - APPSMITH_S3_ENDPOINT=http://minio:9000
# OAuth Configuration (Google example)
# - APPSMITH_OAUTH2_GOOGLE_CLIENT_ID=your-google-client-id
# - APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET=your-google-client-secret
# Custom Domain
# - APPSMITH_CUSTOM_DOMAIN=app.yourdomain.com
# Session Configuration
- APPSMITH_SESSION_TIMEOUT=86400000 # 24 hours in milliseconds
# Logging Configuration
- APPSMITH_LOG_LEVEL=error
# External API Request Timeout
- APPSMITH_EXTERNAL_APIS_TIMEOUT=10000 # 10 seconds
ports:
- "8080:80" # Expose Appsmith on port 8080
depends_on:
- mongo1
- redis
volumes:
- /docker/volumes/appsmith:/appsmith-stacks
networks:
- alberto
mongo1:
image: mongo:4.4
restart: always
container_name: mongo1
hostname: mongo1
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=appsmith
- MONGO_REPLICA_SET_NAME=rs0 # Name of the replica set
command: ["mongod", "--replSet", "rs0", "--keyFile", "/data/configdb/mongodb-keyfile"]
ports:
- "27017:27017" # Expose MongoDB on port 27017
volumes:
- /docker/volumes/mongo/data:/data/db # MongoDB data
- ./mongodb-keyfile:/data/configdb/mongodb-keyfile:ro # Mount the key file
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- alberto
# mongo2:
# image: mongo:4.4
# container_name: mongo2
# hostname: mongo2
# restart: always
# environment:
# - MONGO_INITDB_ROOT_USERNAME=admin
# - MONGO_INITDB_ROOT_PASSWORD=admin
# - MONGO_INITDB_DATABASE=appsmith
# - MONGO_REPLICA_SET_NAME=rs0
# volumes:
# - /docker/volumes/mongo2/data:/data/db
# - /docker/volumes/mongo2/config:/data/configdb
# networks:
# - alberto
redis:
image: redis:6
restart: always
container_name: redis
hostname: redis
ports:
- "6379:6379" # Expose Redis on port 6379
volumes:
- /docker/volumes/redis/data:/data # Redis data
networks:
- alberto
postgres:
image: postgres:14-alpine
restart: always
container_name: postgres
hostname: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=appsmith
ports:
- "5432:5432" # Expose PostgreSQL on port 5432
volumes:
- /docker/volumes/postgres/data:/var/lib/postgresql/data # PostgreSQL data
networks:
- alberto
pgadmin:
image: dpage/pgadmin4
restart: always
container_name: pgadmin
hostname: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
depends_on:
- postgres
volumes:
- /docker/volumes/pgadmin/data:/var/lib/pgadmin # pgAdmin data
networks:
- alberto
minio:
image: minio/minio
restart: always
container_name: minio
hostname: minio
environment:
- MINIO_ACCESS_KEY=YOUR_MINIO_ACCESS_KEY
- MINIO_SECRET_KEY=YOUR_MINIO_SECRET_KEY
- MINIO_BROWSER_REDIRECT_PORT=9000
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=adminpassword
command: server /data --address 0.0.0.0:9000 --console-address 0.0.0.0:9001
ports:
- "9000:9000"
- "9001:9001"
volumes:
- /docker/volumes/minio/data:/data # MinIO data
networks:
- alberto
duplicati:
image: linuxserver/duplicati
restart: always
container_name: duplicati
hostname: duplicati
environment:
- PUID=1000
- PGID=1000
volumes:
- /docker/volumes/appsmith:/source/appsmith
- /docker/volumes/mongo:/source/mongo
- /docker/volumes/redis:/source/redis
- /docker/volumes/postgres:/source/postgres
- /docker/volumes/minio:/source/minio
- /docker/backups:/backups
ports:
- "8200:8200"
networks:
- alberto
networks:
alberto:
driver: bridge