Created
September 17, 2018 14:02
-
-
Save carmenlau/c9043d55a3bcd66b44dac95a10c57c44 to your computer and use it in GitHub Desktop.
Locally run skygear sever and multiple plugins 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 | |
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,CHAT | |
CHAT_TRANSPORT: zmq | |
CHAT_PATH: chat | |
CHAT_ARGS: tcp://0.0.0.0:5555 | |
PLUGIN_TRANSPORT: http | |
PLUGIN_PATH: http://jsplugin:9000 | |
chat: | |
image: quay.io/skygeario/py-skygear:v1.6.1 | |
depends_on: | |
- db | |
- app | |
command: py-skygear chat | |
volumes: | |
- ./chat:/usr/src/app | |
environment: | |
DATABASE_URL: postgresql://postgres:@db:5432/postgres?sslmode=disable | |
PUBSUB_URL: ws://app:3000/pubsub | |
SKYGEAR_ADDRESS: tcp://app:5555 | |
SKYGEAR_ENDPOINT: http://app:3000 | |
APP_NAME: myapp | |
API_KEY: changeme | |
MASTER_KEY: secret | |
jsplugin: | |
image: skygeario/skygear-node:v1.6.2 | |
depends_on: | |
- db | |
- app | |
volumes: | |
- ./js_plugin:/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