mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Improves documentation and compose file (#127)
This commit is contained in:
parent
aa22441a46
commit
aa61951670
6 changed files with 17 additions and 10 deletions
|
@ -1,16 +1,17 @@
|
|||
APP_SECRET=Ck7Rt1uiy5WGbrTFj1HBjymbBoA6zqih
|
||||
BASE_URL=http://localhost:3000
|
||||
UI_PORT=3000
|
||||
API_BASE_URL=http://localhost:3000/api
|
||||
|
||||
DB_CLIENT=mysql2
|
||||
DB_HOST=127.0.0.1
|
||||
DB_USERNAME=parcelvoy
|
||||
DB_HOST=mysql
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=parcelvoypassword
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=parcelvoy
|
||||
|
||||
QUEUE_DRIVER=redis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
|
||||
STORAGE_DRIVER=local
|
||||
|
|
|
@ -30,7 +30,7 @@ You can run Parcelvoy locally or in the cloud easily using Docker.
|
|||
To get up and running quickly to try things out, copy our latest `docker-compose.yml` and `.env` file onto your machine and go!
|
||||
```
|
||||
mkdir parcelvoy && cd parcelvoy
|
||||
wget https://raw.githubusercontent.com/parcelvoy/parcelvoy/master/{.env.example,docker-compose.yml}
|
||||
wget https://raw.githubusercontent.com/parcelvoy/platform/master/{.env.example,docker-compose.yml}
|
||||
mv .env.example .env
|
||||
docker compose up -d # run the Docker container
|
||||
```
|
||||
|
|
|
@ -23,6 +23,8 @@ export default class App {
|
|||
|
||||
static async init(env: Env): Promise<App> {
|
||||
|
||||
logger.info('parcelvoy initializing')
|
||||
|
||||
// Boot up error tracking
|
||||
const error = await loadError(env.error)
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ services:
|
|||
volumes:
|
||||
- redis_data:/data
|
||||
api:
|
||||
image: 'ghcr.io/parcelvoy/api:latest'
|
||||
image: "ghcr.io/parcelvoy/api:${IMAGE_VERSION:-latest}"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: wget --no-verbose --tries=1 --spider http://localhost:3001/api/health || exit 1
|
||||
|
@ -35,6 +35,7 @@ services:
|
|||
- 3001:3001
|
||||
links:
|
||||
- mysql:mysql
|
||||
- redis:redis
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
|
@ -81,10 +82,11 @@ services:
|
|||
volumes:
|
||||
- uploads:/usr/src/app/public/uploads
|
||||
worker:
|
||||
image: 'ghcr.io/parcelvoy/api:latest'
|
||||
image: "ghcr.io/parcelvoy/api:${IMAGE_VERSION:-latest}"
|
||||
restart: always
|
||||
links:
|
||||
- mysql:mysql
|
||||
- redis:redis
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
|
@ -128,7 +130,7 @@ services:
|
|||
ERROR_BUGSNAG_API_KEY: ${ERROR_BUGSNAG_API_KEY}
|
||||
ERROR_SENTRY_DSN: ${ERROR_SENTRY_DSN}
|
||||
ui:
|
||||
image: 'ghcr.io/parcelvoy/ui:latest'
|
||||
image: "ghcr.io/parcelvoy/ui:${PARCELVOY_VERSION:-latest}"
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
|
|
|
@ -3,7 +3,7 @@ title: AWS EC2
|
|||
---
|
||||
# Deploy Parcelvoy on AWS (Amazon EC2)
|
||||
|
||||
This page guides you through deploying Parcelvoy Open-Source on an Amazon EC2 instance by setting up the deployment environment, installing and starting Airbyte, and connecting it to the Amazon EC2 instance.
|
||||
This page guides you through deploying Parcelvoy Open-Source on an Amazon EC2 instance by setting up the deployment environment, installing and starting Parcelvoy, and connecting it to the Amazon EC2 instance.
|
||||
|
||||
## Requirements
|
||||
- A t3.medium instance or larger. While you can run it on smaller instances, performance may not be optimal.
|
||||
|
@ -28,7 +28,7 @@ docker compose version
|
|||
4. Download Parcelvoy configuration:
|
||||
```
|
||||
mkdir parcelvoy && cd parcelvoy
|
||||
wget https://raw.githubusercontent.com/parcelvoy/parcelvoy/master/{.env.example,docker-compose.yaml}
|
||||
wget https://raw.githubusercontent.com/parcelvoy/platform/master/{.env.example,docker-compose.yml}
|
||||
```
|
||||
|
||||
5. Setup environment variables
|
||||
|
@ -47,4 +47,6 @@ AUTH_BASIC_PASSWORD=password
|
|||
This file also lets you use a separate database, change what queue is being used or setup SSO.
|
||||
|
||||
By default the port is configured to use `3000` for the UI and API. You can modify this by setting `UI_PORT`.
|
||||
|
||||
6. Setup security groups
|
||||
Based on what port you are using for the UI portion, you will want to make sure you have configured that port to be open as well in your security groups.
|
||||
|
|
|
@ -14,7 +14,7 @@ Copy our latest `docker-compose.yml` and `.env.example` file onto your machine:
|
|||
|
||||
```
|
||||
mkdir parcelvoy && cd parcelvoy
|
||||
wget https://raw.githubusercontent.com/parcelvoy/parcelvoy/master/{.env.example,docker-compose.yml}
|
||||
wget https://raw.githubusercontent.com/parcelvoy/platform/master/{.env.example,docker-compose.yml}
|
||||
mv .env.example .env
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue