chore: Use new Docker image for dev-time server (#25609)

We've stopped [building the slim
images](https://github.com/appsmithorg/appsmith/pull/25219) now and so
the instructions to run server locally, which rely on the slim server
image, need to be updated to use the newer `appsmith-ce` image.

This PR updates the instructions to use this.
This commit is contained in:
Shrikant Sharat Kandula 2023-07-24 09:56:30 +05:30 committed by GitHub
parent 884c270dc4
commit ff9e24cbd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 61 deletions

View File

@ -1,3 +1,5 @@
# This is deprecated, and is not recommended anymore. Please refer to ServerSetup.md for the latest instructions.
version: "3.7"
services:

View File

@ -14,40 +14,23 @@ There are two ways to run Appsmith server.
## Setup with Docker
* You can run the server codebase in a docker container.
* This method is recommended if you just want to run the backend server for testing/contributing to frontend code. If you would like to make edits to the source code of server, use [local server method](#local-setup)
- ## What's in the docker container
* Appsmith server
* MongoDB database
* Redis instance
* ## Pre-requisites
* [Docker](https://docs.docker.com/get-docker/)
* ## Setup
1. Clone the Appsmith repository and `cd` into it
Running the Appsmith Docker image as a container will grant you a running Appsmith server, along with its dependencies, like MongoDB and Redis. This is the easiest way to get started with Appsmith server.
1. Clone the Appsmith repository and change into it
```
git clone https://github.com/appsmithorg/appsmith.git
cd appsmith
```
2. Change your directory to `app/server`
2. Change your directory to `deploy/docker`
```console
cd app/server
```
3. Create a copy of the `envs/docker.env.example`
```console
cp envs/docker.env.example envs/docker.env
```
4. Start up the containers
3. Start
```console
docker-compose up -d
```
5. Have fun!
# Local Setup

View File

@ -1,28 +1,15 @@
# Use for running an Appsmith, during development.
version: "3"
services:
appsmith:
build:
context: ../../
image: index.docker.io/appsmith/appsmith-ce:release
container_name: appsmith
ports:
- "80:80"
- "443:443"
- "8080:80"
environment:
APPSMITH_ENCRYPTION_PASSWORD: abcd
APPSMITH_ENCRYPTION_SALT: abcd
volumes:
- ./stacks:/appsmith-stacks
# Uncomment the lines below to enable auto-update
#labels:
# com.centurylinklabs.watchtower.enable: "true"
#auto_update:
# image: containrrr/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# # Update check interval in seconds.
# command: --schedule "0 0 * ? * *" --label-enable --cleanup
# restart: unless-stopped
# depends_on:
# - appsmith
# environment:
# - WATCHTOWER_LIFECYCLE_HOOKS=true