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"
|
version: "3.7"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
|
||||||
|
|
@ -14,40 +14,23 @@ There are two ways to run Appsmith server.
|
||||||
|
|
||||||
## Setup with Docker
|
## 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
|
2. Change your directory to `deploy/docker`
|
||||||
* Appsmith server
|
```console
|
||||||
* MongoDB database
|
cd app/server
|
||||||
* Redis instance
|
```
|
||||||
|
|
||||||
* ## Pre-requisites
|
3. Start
|
||||||
|
```console
|
||||||
* [Docker](https://docs.docker.com/get-docker/)
|
docker-compose up -d
|
||||||
|
```
|
||||||
* ## 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!
|
|
||||||
|
|
||||||
# Local Setup
|
# Local Setup
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,15 @@
|
||||||
|
# Use for running an Appsmith, during development.
|
||||||
|
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
appsmith:
|
appsmith:
|
||||||
build:
|
image: index.docker.io/appsmith/appsmith-ce:release
|
||||||
context: ../../
|
|
||||||
container_name: appsmith
|
container_name: appsmith
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8080:80"
|
||||||
- "443:443"
|
environment:
|
||||||
|
APPSMITH_ENCRYPTION_PASSWORD: abcd
|
||||||
|
APPSMITH_ENCRYPTION_SALT: abcd
|
||||||
volumes:
|
volumes:
|
||||||
- ./stacks:/appsmith-stacks
|
- ./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