-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# docker-compose.yml for Skygear
# This docker-compose.yml requries Docker Compose 1.6. Do not modify this
# file for local development--create `docker-compose.override.yml` to
# override settings here.
version: '2'
services:
db:
image: mdillon/postgis:9.5
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
app:
image: quay.io/skygeario/skygear-server:latest
ports:
- "3001:3000" # Skygear API Endpoint (HTTP)
volumes:
- app_data:/go/src/app/data
links:
- db
command: skygear-server
environment:
# `db` in the following string should match the name of the database
# container above.
DATABASE_URL: postgresql://postgres:@db/postgres?sslmode=disable
APP_NAME: my_skygear_app
API_KEY: my_skygear_key
MASTER_KEY: my_master_key
TOKEN_STORE: jwt
TOKEN_STORE_SECRET: my_skygear_jwt_secret
PLUGINS: CHAT
CHAT_TRANSPORT: zmq
CHAT_PATH: chat
CHAT_ARGS: tcp://0.0.0.0:5555
# GOMAXPROCS - The maximum number of Go threads for execution.
# When unspecified, the default is the number of CPU available, which
# is the recommended setting.
#GOMAXPROCS: 1
plugin:
build:
context: .
links:
- app
- db
volumes:
- ./:/usr/src/app
command: py-skygear chat
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: my_skygear_app
API_KEY: my_skygear_key
MASTER_KEY: my_master_key
TOKEN_STORE_SECRET: my_skygear_jwt_secret
ASSET_STORE_URL_PREFIX: http://localhost:3000/
# The volume container for skygear
volumes:
db_data:
driver: local
app_data:
driver: local