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:
parent
884c270dc4
commit
ff9e24cbd9
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
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.
|
||||
|
||||
* 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)
|
||||
1. Clone the Appsmith repository and change into it
|
||||
```
|
||||
git clone https://github.com/appsmithorg/appsmith.git
|
||||
cd appsmith
|
||||
```
|
||||
|
||||
- ## What's in the docker container
|
||||
* Appsmith server
|
||||
* MongoDB database
|
||||
* Redis instance
|
||||
2. Change your directory to `deploy/docker`
|
||||
```console
|
||||
cd app/server
|
||||
```
|
||||
|
||||
* ## Pre-requisites
|
||||
|
||||
* [Docker](https://docs.docker.com/get-docker/)
|
||||
|
||||
* ## Setup
|
||||
|
||||
1. Clone the Appsmith repository and `cd` into it
|
||||
|
||||
```
|
||||
git clone https://github.com/appsmithorg/appsmith.git
|
||||
cd appsmith
|
||||
```
|
||||
2. Change your directory to `app/server`
|
||||
```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
|
||||
```console
|
||||
docker-compose up -d
|
||||
```
|
||||
5. Have fun!
|
||||
3. Start
|
||||
```console
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
# Local Setup
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user