gistfile1.txt
· 926 B · Text
Bruto
version: "3"
services:
appsmith:
image: appsmith/appsmith-ce
container_name: appsmith-ce
ports:
- 80
- 443
- 9001
volumes:
- /volume1/docker/appsmith/stacks:/appsmith-stacks
environment:
APPSMITH_MONGODB_URI: "mongodb://mongodb:27017/appsmith?replicaSet=rs0"
depends_on:
- mongodb
restart: unless-stopped
# 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!
mongodb:
image: mongo:4.4
container_name: appsmith-mongodb
command: --replSet rs0
ports:
- "27017:27017"
volumes:
- /volume1/docker/appsmith/mongodb-data:/data/db
restart: unless-stopped
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 |