Locally run skygear sever and js cloud functions example
version: '3' | |
services: | |
db: | |
image: mdillon/postgis:9.5 | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
app: | |
image: skygeario/skygear-server:v1.6.2 | |
command: skygear-server --http | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db | |
environment: | |
# Set to NO when in production environment | |
DEV_MODE: 'YES' | |
APP_NAME: myapp | |
MASTER_KEY: secret | |
API_KEY: changeme | |
TOKEN_STORE_SECRET: secret | |
TOKEN_STORE: jwt | |
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable | |
PLUGINS: PLUGIN | |
PLUGIN_TRANSPORT: http | |
PLUGIN_PATH: http://plugin:9000 | |
plugin: | |
image: skygeario/skygear-node:v1.6.2 | |
depends_on: | |
- db | |
- app | |
volumes: | |
- .:/usr/src/app | |
environment: | |
APP_NAME: myapp | |
SKYGEAR_ENDPOINT: http://app:3000/ | |
MASTER_KEY: secret | |
API_KEY: changeme | |
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable | |
volumes: | |
db_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment