Upscale revised this gist . Go to revision
1 file changed, 29 insertions
gistfile1.txt(file created)
@@ -0,0 +1,29 @@ | |||
1 | + | version: "3" | |
2 | + | ||
3 | + | services: | |
4 | + | appsmith: | |
5 | + | image: appsmith/appsmith-ce | |
6 | + | container_name: appsmith-ce | |
7 | + | ports: | |
8 | + | - 80 | |
9 | + | - 443 | |
10 | + | - 9001 | |
11 | + | volumes: | |
12 | + | - /volume1/docker/appsmith/stacks:/appsmith-stacks | |
13 | + | environment: | |
14 | + | APPSMITH_MONGODB_URI: "mongodb://mongodb:27017/appsmith?replicaSet=rs0" | |
15 | + | depends_on: | |
16 | + | - mongodb | |
17 | + | restart: unless-stopped | |
18 | + | ||
19 | + | # IMPORTANT: Once the MongoDB container is up and running, access the container using the terminal via BASH. Once in enter the command 'mongo' (without the quotations). You should then see a '>' symbol. Then enter the command 'rs.initiate()' (again without the quotations). Wait for about 10-20 minutes and that should be that! | |
20 | + | ||
21 | + | mongodb: | |
22 | + | image: mongo:4.4 | |
23 | + | container_name: appsmith-mongodb | |
24 | + | command: --replSet rs0 | |
25 | + | ports: | |
26 | + | - "27017:27017" | |
27 | + | volumes: | |
28 | + | - /volume1/docker/appsmith/mongodb-data:/data/db | |
29 | + | restart: unless-stopped |
Newer
Older