Created
September 13, 2018 06:05
-
-
Save carmenlau/30c2753158e1508f0cc565a3b87f4576 to your computer and use it in GitHub Desktop.
Locally run skygear sever and js cloud functions example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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